nixos/resolvconf: add `::1` as local dns resolver

This commit is contained in:
Janik H. 2024-03-15 15:04:22 +01:00 committed by Félix
parent a0dbdc8e1d
commit fc060cc3cb
1 changed files with 2 additions and 0 deletions

View File

@ -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