From c2ac7e3af4eebe8b447e178c52611965c4b11ecf Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 13 Jul 2026 22:58:41 +0200 Subject: [PATCH] fix(pihole): local DNS records for mercury.sol + jupiter.sol (dns.hosts) mercury is the DHCP server (no lease of its own) so its name wasn't resolvable. Add explicit dns.hosts A records. VM-verified: both resolve, external unaffected. --- services/pihole.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/services/pihole.nix b/services/pihole.nix index a0b547f..28993e2 100644 --- a/services/pihole.nix +++ b/services/pihole.nix @@ -25,6 +25,13 @@ dns = { upstreams = [ "127.0.0.1#5335" ]; # local unbound (recursive) domain = "sol"; # local domain -> jupiter.sol etc. + # Local A records (/etc/hosts style). mercury is the DHCP server (no + # lease of its own), so its name must be declared here. jupiter is also + # pinned explicitly so it resolves regardless of lease state. + hosts = [ + "10.0.0.10 mercury.sol mercury" + "10.0.0.20 jupiter.sol jupiter" + ]; }; dhcp = {