resolve DNS locally when running coredns

This commit is contained in:
James Walker 2022-06-01 20:22:50 -04:00
parent 15ff560080
commit 9fec3b77f4
Signed by: walkah
GPG Key ID: 3C127179D6086E93

View File

@ -18,6 +18,7 @@ in
enable = true; enable = true;
config = '' config = ''
. { . {
bind 127.0.0.1
bind ${cfg.addr} bind ${cfg.addr}
prometheus ${cfg.addr}:9153 prometheus ${cfg.addr}:9153
log log
@ -35,5 +36,10 @@ in
} }
''; '';
}; };
networking = {
nameservers = [ "127.0.0.1" ];
search = [ "walkah.lab" ];
};
}; };
} }