From 9fec3b77f49d1a3e241130c4adb441f7ac4eb78e Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 1 Jun 2022 20:22:50 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20resolve=20DNS=20locally=20when=20ru?= =?UTF-8?q?nning=20coredns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/coredns/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/coredns/default.nix b/modules/coredns/default.nix index 0fa9315..d9b0d79 100644 --- a/modules/coredns/default.nix +++ b/modules/coredns/default.nix @@ -18,6 +18,7 @@ in enable = true; config = '' . { + bind 127.0.0.1 bind ${cfg.addr} prometheus ${cfg.addr}:9153 log @@ -35,5 +36,10 @@ in } ''; }; + + networking = { + nameservers = [ "127.0.0.1" ]; + search = [ "walkah.lab" ]; + }; }; }