fix dns resolution on dns servers

This commit is contained in:
lilly 2025-03-15 22:17:15 +01:00
parent 43145bbd19
commit ed99a3710e
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
3 changed files with 14 additions and 5 deletions

View file

@ -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;

View file

@ -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" ];
}; };

View file

@ -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