summary refs log tree commit diff
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2022-04-13 18:16:38 +0200
committerrnhmjoj <rnhmjoj@inventati.org>2022-04-14 21:07:15 +0200
commitd39a10daa8488cc23ad43d48dd27cd74dff192e1 (patch)
tree016d2bb09c2689ce05eac9b4b7d79dd10cc4c5da
parentd08394e7cd5c7431a1e8f53b7f581e74ee909548 (diff)
downloadnixpkgs-d39a10daa8488cc23ad43d48dd27cd74dff192e1.tar
nixpkgs-d39a10daa8488cc23ad43d48dd27cd74dff192e1.tar.gz
nixpkgs-d39a10daa8488cc23ad43d48dd27cd74dff192e1.tar.bz2
nixpkgs-d39a10daa8488cc23ad43d48dd27cd74dff192e1.tar.lz
nixpkgs-d39a10daa8488cc23ad43d48dd27cd74dff192e1.tar.xz
nixpkgs-d39a10daa8488cc23ad43d48dd27cd74dff192e1.tar.zst
nixpkgs-d39a10daa8488cc23ad43d48dd27cd74dff192e1.zip
nixos/ncdns: listen on IPv6 by default
-rw-r--r--nixos/modules/services/networking/ncdns.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/ncdns.nix b/nixos/modules/services/networking/ncdns.nix
index 82c285d0516..c8d1b6718e2 100644
--- a/nixos/modules/services/networking/ncdns.nix
+++ b/nixos/modules/services/networking/ncdns.nix
@@ -58,7 +58,7 @@ in
 
       address = mkOption {
         type = types.str;
-        default = "127.0.0.1";
+        default = "[::1]";
         description = ''
           The IP address the ncdns resolver will bind to.  Leave this unchanged
           if you do not wish to directly expose the resolver.
@@ -202,7 +202,7 @@ in
   config = mkIf cfg.enable {
 
     services.pdns-recursor = mkIf cfgs.pdns-recursor.resolveNamecoin {
-      forwardZonesRecurse.bit = "127.0.0.1:${toString cfg.port}";
+      forwardZonesRecurse.bit = "${cfg.address}:${toString cfg.port}";
       luaConfig =
         if cfg.dnssec.enable
           then ''readTrustAnchorsFromFile("${cfg.dnssec.keys.public}")''