I have two piholes running 192.168.4.99 & 192.168.4.100. They supply ad blocking, DHCP and local domain resolution on an active home network. They are named dns-pi2b and dns-pi3b. Recently, dns-pi2b stopped responding to its name, but I can still contact it by its IP address. Does anyone have any ideas how to correct this anomaly; the machines worked perfectly for years prior.
How did you ensure your LAN devices can resolve this hostname in the first place ? I assume you created an A record on your piholes DNS integrated zone and set one or both of your piholes as DNS server on your devices interfaces, but I might be wrong. If so, which is the primary one ?
What does dig or nslookup tells you when you query dns-pi2b A or CNAME record ?
Are you running into this issue on every LAN device ?
Any recent change you might be aware of ?
Also, I don't know if this question is pertinent yet, but how are these two DNS server related; are they clustered in some way ?
Both machines names have been resolving for the past two years without any issues. Only dns-pi2b is affected, and only during an HTTP address lookup. SSH dns-pi2b still resolves correctly. This just started the other day. Otherwise, the operation is normal.
The commands I've asked you to run are not preceeded by ssh.
I also asked you to run them from a client (i.e. not from your Pi-hole machine you are probably trying to ssh into).
Please run the commands exactly as provided, and do run them from a client.
Those nslookup results show that your kali client was using your Pi-hole at 192.168.4.99 for DNS (at least for those requests), and they confirm that your 192.168.4.99 knows how to resolve both dns-pi2b and dns-pi3b.
Would that be true for your 192.168.4.100 as well?
And would your clients perhaps have a choice of other DNS servers, apart from your two Pi-holes?
Also, please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:
I changed the order the 192.168.11.xxx network gets its DNS and DHCP requests from 192.168.4.99 to 192.168.4.100. Now the web interface shows up again on both pi holes using their names. It is only when 99 is the primary DNS. Weird.
Those other DNS servers are not being used by the network protected by pi hole. They come from my ISP and every thing is configured to ignore them. Home Assistant, for example, could not deal with them. Well, it's all working now...
Primary DNS server is not a well-defined concept.
You'll note from the DHCP output that all those IPs are announced as dns-server indiscriminately - there simply is no primary or secondary or alternate flag.
Each client is free to use any of them, and will decide to do so following its own mostly opaque rules when to prefer one over another.
I'd still recommend to run those nslookups against your second Pi-hole, e.g.
nslookup dns-pi2b 192.168.4.100
My suspicion is that your .100 doesn't know about dns-pi2b, and if a client sends a DNS request to your .100, it simply would fail to resolve, but that is just sort of an elaborated guess.
Answering my questions about UI availability, running the lookup through your second Pi-hole and providing a debug token for that could have helped to confirm or reject that suspicion, and probably would've revealed the underlying root cause.