From bff63c828f52db167150d3e9d61340517f928b61 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Fri, 8 Aug 2025 15:58:40 -0500 Subject: [PATCH] remove upstream settings for dns dnsmasq since using adguard home for dns. Do bind dns service locally for rDNS PTR requests for adguard logs to be readable --- hosts/h003/flake.nix | 2 ++ hosts/h003/mods/networking.nix | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/hosts/h003/flake.nix b/hosts/h003/flake.nix index 03d7af8..1d93336 100644 --- a/hosts/h003/flake.nix +++ b/hosts/h003/flake.nix @@ -36,7 +36,9 @@ environment.systemPackages = with pkgs; [ lua sqlite + # networking tools tcpdump + dig ]; ringofstorms_common = { diff --git a/hosts/h003/mods/networking.nix b/hosts/h003/mods/networking.nix index 4da990e..3931e42 100644 --- a/hosts/h003/mods/networking.nix +++ b/hosts/h003/mods/networking.nix @@ -179,7 +179,11 @@ "vlan30" ]; bind-interfaces = true; - port = 0; # DISABLE DNS we are using ad guard for that + + # Shift DNS to localhost only on a separate non standard port + # We are using ./adguardhome.nix for DNS and we still run this one for reverse name lookups + listen-address = "127.0.0.1"; + port = 9053; # DHCP range and settings dhcp-range = [ @@ -215,14 +219,13 @@ "vlan30,60,120" ]; - # DNS settings - server = [ - # TODO ad guard - "1.1.1.1" - "8.8.8.8" - "2606:4700:4700::1111" # Cloudflare IPv6 - "2001:4860:4860::8888" # Google IPv6 - ]; + # DNS settings (not needed since we use adguard for dns) + # server = [ + # "1.1.1.1" + # "8.8.8.8" + # "2606:4700:4700::1111" # Cloudflare IPv6 + # "2001:4860:4860::8888" # Google IPv6 + # ]; }; };