From ac4ce0327425a2d3b219b08234598550686a473f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 15 Jun 2025 19:00:49 +0200 Subject: [PATCH] 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. --- nixos/modules/services/networking/pdns-recursor.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/networking/pdns-recursor.nix b/nixos/modules/services/networking/pdns-recursor.nix index 04ae59b7fca9..581c206eb3c7 100644 --- a/nixos/modules/services/networking/pdns-recursor.nix +++ b/nixos/modules/services/networking/pdns-recursor.nix @@ -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;