From fc060cc3cb1ceb1825cc015abd16dc0fce326836 Mon Sep 17 00:00:00 2001 From: "Janik H." Date: Fri, 15 Mar 2024 15:04:22 +0100 Subject: [PATCH] nixos/resolvconf: add `::1` as local dns resolver --- nixos/modules/config/resolvconf.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/config/resolvconf.nix b/nixos/modules/config/resolvconf.nix index e9ae4d651d26..3b8cc0cb8f42 100644 --- a/nixos/modules/config/resolvconf.nix +++ b/nixos/modules/config/resolvconf.nix @@ -28,6 +28,8 @@ let '' + optionalString cfg.useLocalResolver '' # This hosts runs a full-blown DNS resolver. name_servers='127.0.0.1' + '' + optionalString (cfg.useLocalResolver && config.networking.enableIPv6) '' + name_servers='::1' '' + cfg.extraConfig; in