From 4886d3da762d0202d3f71a420faa449c31774e33 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 15 Feb 2022 16:34:50 +0100 Subject: surtr: ... --- hosts/surtr/default.nix | 3 ++- 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 @@ systemd.network.networks."40-ens3".networkConfig = { Domains = lib.mkForce "~."; - DNS = [ "46.38.225.230" "46.38.252.230" "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" ]; + DNS = [ "::1:5353" ]; + # DNS = [ "46.38.225.230" "46.38.252.230" "2a03:4000:0:1::e1e6" "2a03:4000:8000::fce6" ]; }; 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 @@ -{...}: +{ pkgs, ... }: { config = { fileSystems."/var/lib/knot" = @@ -21,7 +21,7 @@ - id: inwx_notify address: 185.181.104.96@53 - id: recursive - address: 127.0.0.1@5353 + address: ::1@5353 acl: - id: inwx_acl @@ -123,8 +123,8 @@ settings = { server = { - interface = ["127.0.0.1:5353" "::0:5353"]; - access-control = ["127.0.0.0/8 allow" "::0/128 allow"]; + interface = ["127.0.0.1:5353" "::1:5353"]; + access-control = ["127.0.0.0/8 allow" "::1/128 allow"]; root-hints = "${pkgs.dns-root-data}/root.hints"; num-threads = 12; -- cgit v1.2.3