sid: change nameserver to localhost #27
1 changed files with 3 additions and 3 deletions
|
|
@ -4,13 +4,15 @@
|
||||||
services.resolved.enable = false;
|
services.resolved.enable = false;
|
||||||
networking.resolvconf.enable = false;
|
networking.resolvconf.enable = false;
|
||||||
|
|
||||||
networking.nameservers = [ constants.hosts.sid.ip ];
|
networking.nameservers = [ "127.0.0.1" ];
|
||||||
|
|
||||||
services.coredns = {
|
services.coredns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = with constants; ''
|
config = with constants; ''
|
||||||
.:53 {
|
.:53 {
|
||||||
bind 127.0.0.1 ${hosts.sid.ip}
|
bind 127.0.0.1 ${hosts.sid.ip}
|
||||||
|
forward . 1.1.1.1 8.8.8.8
|
||||||
|
cache 30
|
||||||
hosts {
|
hosts {
|
||||||
${hosts.sid.ip} ${ca-fqdn}
|
${hosts.sid.ip} ${ca-fqdn}
|
||||||
|
|
||||||
|
|
@ -22,8 +24,6 @@
|
||||||
${hosts.vde.ip} vde.tail
|
${hosts.vde.ip} vde.tail
|
||||||
fallthrough
|
fallthrough
|
||||||
}
|
}
|
||||||
forward . 1.1.1.1
|
|
||||||
cache
|
|
||||||
log
|
log
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue