diff --git a/modules/config/networking.nix b/modules/config/networking.nix index 5065fc22f2ce..2b4be69cc51f 100644 --- a/modules/config/networking.nix +++ b/modules/config/networking.nix @@ -68,6 +68,9 @@ in # Invalidate the nscd cache whenever resolv.conf is # regenerated. libc_restart='${pkgs.upstart}/sbin/start invalidate-nscd' + '' + optionalString config.services.bind.enable '' + # This hosts runs a full-blown DNS resolver. + name_servers='127.0.0.1' '' ); target = "resolvconf.conf"; }