fix dns resolution on dns servers
This commit is contained in:
parent
43145bbd19
commit
ed99a3710e
3 changed files with 14 additions and 5 deletions
systems
|
@ -50,14 +50,19 @@ in
|
||||||
# enable knot authorative dns server
|
# enable knot authorative dns server
|
||||||
# ref: https://search.nüschtos.de/?query=services.knot
|
# ref: https://search.nüschtos.de/?query=services.knot
|
||||||
# https://www.knot-dns.cz/docs/3.4/html/configuration.html
|
# https://www.knot-dns.cz/docs/3.4/html/configuration.html
|
||||||
environment.etc = (
|
environment.etc =
|
||||||
lib.attrsets.mapAttrs' (name: value: {
|
(lib.attrsets.mapAttrs' (name: value: {
|
||||||
name = "knot/zones/noc.eh22.intern.zone";
|
name = "knot/zones/noc.eh22.intern.zone";
|
||||||
value = {
|
value = {
|
||||||
source = value;
|
source = value;
|
||||||
};
|
};
|
||||||
}) zones
|
}) zones)
|
||||||
);
|
// {
|
||||||
|
"resolv.conf".text = ''
|
||||||
|
search noc.eh22.intern eh22.intern
|
||||||
|
nameserver 10.20.25.5
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.knot = {
|
services.knot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
networks = {
|
networks = {
|
||||||
"10-eth0" = {
|
"10-eth0" = {
|
||||||
matchConfig.MACAddress = "BC:24:11:41:E1:61";
|
matchConfig.MACAddress = "BC:24:11:21:7F:AF";
|
||||||
address = [ "94.45.248.2/24" ];
|
address = [ "94.45.248.2/24" ];
|
||||||
gateway = [ "BC:24:11:21:7F:AF" ];
|
gateway = [ "BC:24:11:21:7F:AF" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,6 +45,10 @@ in
|
||||||
allowedTCPPorts = [ 53 ];
|
allowedTCPPorts = [ 53 ];
|
||||||
allowedUDPPorts = [ 53 ];
|
allowedUDPPorts = [ 53 ];
|
||||||
};
|
};
|
||||||
|
environment.etc."resolv.conf".text = ''
|
||||||
|
search noc.eh22.intern eh22.intern
|
||||||
|
nameserver 10.20.25.5
|
||||||
|
'';
|
||||||
|
|
||||||
# enable knot resolv server
|
# enable knot resolv server
|
||||||
# ref: https://search.nüschtos.de/?query=services.kresd
|
# ref: https://search.nüschtos.de/?query=services.kresd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue