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
|
||||
# ref: https://search.nüschtos.de/?query=services.knot
|
||||
# https://www.knot-dns.cz/docs/3.4/html/configuration.html
|
||||
environment.etc = (
|
||||
lib.attrsets.mapAttrs' (name: value: {
|
||||
environment.etc =
|
||||
(lib.attrsets.mapAttrs' (name: value: {
|
||||
name = "knot/zones/noc.eh22.intern.zone";
|
||||
value = {
|
||||
source = value;
|
||||
};
|
||||
}) zones
|
||||
);
|
||||
}) zones)
|
||||
// {
|
||||
"resolv.conf".text = ''
|
||||
search noc.eh22.intern eh22.intern
|
||||
nameserver 10.20.25.5
|
||||
'';
|
||||
};
|
||||
|
||||
services.knot = {
|
||||
enable = true;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
enable = true;
|
||||
networks = {
|
||||
"10-eth0" = {
|
||||
matchConfig.MACAddress = "BC:24:11:41:E1:61";
|
||||
matchConfig.MACAddress = "BC:24:11:21:7F:AF";
|
||||
address = [ "94.45.248.2/24" ];
|
||||
gateway = [ "BC:24:11:21:7F:AF" ];
|
||||
};
|
||||
|
|
|
@ -45,6 +45,10 @@ in
|
|||
allowedTCPPorts = [ 53 ];
|
||||
allowedUDPPorts = [ 53 ];
|
||||
};
|
||||
environment.etc."resolv.conf".text = ''
|
||||
search noc.eh22.intern eh22.intern
|
||||
nameserver 10.20.25.5
|
||||
'';
|
||||
|
||||
# enable knot resolv server
|
||||
# ref: https://search.nüschtos.de/?query=services.kresd
|
||||
|
|
Loading…
Add table
Reference in a new issue