diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/surtr/default.nix | 3 | ||||
-rw-r--r-- | hosts/surtr/dns/default.nix | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/hosts/surtr/default.nix b/hosts/surtr/default.nix index cfb218da..5d59e58e 100644 --- a/hosts/surtr/default.nix +++ b/hosts/surtr/default.nix | |||
@@ -69,7 +69,8 @@ | |||
69 | 69 | ||
70 | systemd.network.networks."40-ens3".networkConfig = { | 70 | systemd.network.networks."40-ens3".networkConfig = { |
71 | Domains = lib.mkForce "~."; | 71 | Domains = lib.mkForce "~."; |
72 | DNS = [ "46.38.225.230" "46.38.252.230" "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" ]; | 72 | DNS = [ "::1:5353" ]; |
73 | # DNS = [ "46.38.225.230" "46.38.252.230" "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" ]; | ||
73 | }; | 74 | }; |
74 | 75 | ||
75 | services.resolved = { | 76 | services.resolved = { |
diff --git a/hosts/surtr/dns/default.nix b/hosts/surtr/dns/default.nix index 87ab922c..978459dc 100644 --- a/hosts/surtr/dns/default.nix +++ b/hosts/surtr/dns/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | {...}: | 1 | { pkgs, ... }: |
2 | { | 2 | { |
3 | config = { | 3 | config = { |
4 | fileSystems."/var/lib/knot" = | 4 | fileSystems."/var/lib/knot" = |
@@ -21,7 +21,7 @@ | |||
21 | - id: inwx_notify | 21 | - id: inwx_notify |
22 | address: 185.181.104.96@53 | 22 | address: 185.181.104.96@53 |
23 | - id: recursive | 23 | - id: recursive |
24 | address: 127.0.0.1@5353 | 24 | address: ::1@5353 |
25 | 25 | ||
26 | acl: | 26 | acl: |
27 | - id: inwx_acl | 27 | - id: inwx_acl |
@@ -123,8 +123,8 @@ | |||
123 | 123 | ||
124 | settings = { | 124 | settings = { |
125 | server = { | 125 | server = { |
126 | interface = ["127.0.0.1:5353" "::0:5353"]; | 126 | interface = ["127.0.0.1:5353" "::1:5353"]; |
127 | access-control = ["127.0.0.0/8 allow" "::0/128 allow"]; | 127 | access-control = ["127.0.0.0/8 allow" "::1/128 allow"]; |
128 | root-hints = "${pkgs.dns-root-data}/root.hints"; | 128 | root-hints = "${pkgs.dns-root-data}/root.hints"; |
129 | 129 | ||
130 | num-threads = 12; | 130 | num-threads = 12; |