2 Commits

Author SHA1 Message Date
  Astro 16d60e0dd3 nixos-module/container/dnscache: fix local forward-zones 1 month ago
  Astro c70cb80a78 nixos-module/container/dnscache: remove more domain-insecure definitions 1 month ago
1 changed files with 2 additions and 12 deletions
  1. 2
    12
      nix/nixos-module/container/dnscache.nix

+ 2
- 12
nix/nixos-module/container/dnscache.nix View File

@@ -39,16 +39,6 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
39 39
         insecure-lan-zones: yes
40 40
 
41 41
         domain-insecure: "dn42"
42
-        domain-insecure: "10.in-addr.arpa"
43
-      ${lib.concatMapStrings (x:
44
-        "  domain-insecure: ${toString x}.172.in-addr.arpa\n"
45
-      ) [
46
-        16 17 18 19
47
-        20 21 22 23
48
-        24 25 26 27
49
-        28 29 30 31
50
-      ]}
51
-        domain-insecure: "168.192.in-addr.arpa"
52 42
         domain-insecure: "d.f.ip6.arpa"
53 43
         domain-insecure: "ffdd"
54 44
 
@@ -71,9 +61,9 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
71 61
       ${lib.concatMapStrings ({ name, ... }: ''
72 62
         forward-zone:
73 63
           name: "${name}"
74
-          forward-host: "${config.site.net.serv.hosts4.dns}"
64
+          forward-addr: "${config.site.net.serv.hosts4.dns}"
75 65
         ${lib.concatMapStrings (hosts6:
76
-          "  forward-host: ${hosts6.dns}\n"
66
+          "  forward-addr: ${hosts6.dns}\n"
77 67
         ) (builtins.attrValues config.site.net.serv.hosts6)}
78 68
       '') config.site.dns.localZones}
79 69
 

Loading…
Cancel
Save