about summary refs log tree commit diff
path: root/nixos/modules/config/resolvconf.nix
diff options
context:
space:
mode:
authorJanik H. <janik@aq0.de>2024-03-15 15:04:22 +0100
committerFĂ©lix <1219785+picnoir@users.noreply.github.com>2024-03-15 19:31:37 +0100
commitfc060cc3cb1ceb1825cc015abd16dc0fce326836 (patch)
treed35cb2eb3322abdac36cbc3a845f52d5d626c8ba /nixos/modules/config/resolvconf.nix
parenta0dbdc8e1d299f64da05af51d40c4943bb0371b2 (diff)
nixos/resolvconf: add `::1` as local dns resolver
Diffstat (limited to 'nixos/modules/config/resolvconf.nix')
-rw-r--r--nixos/modules/config/resolvconf.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/config/resolvconf.nix b/nixos/modules/config/resolvconf.nix
index e9ae4d651d264..3b8cc0cb8f42e 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