nixos/pdns-recursor: configure as local resolver

When pdns-recursor is enabled it should ideally be the default resolver
for the host as well. This is probably good for 95% of the use-cases out
there, and the default for unbound and kresd, but also bind and dnsmasq.
This commit is contained in:
Martin Weinelt 2025-06-15 19:00:49 +02:00
parent c21a866d0b
commit ac4ce03274
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -252,6 +252,8 @@ in
environment.etc."/pdns-recursor/recursor.yml".source = configFile;
networking.resolvconf.useLocalResolver = lib.mkDefault true;
services.pdns-recursor.yaml-settings = {
incoming = mkDefaultAttrs {
listen = cfg.dns.address;