Good morning!
I know that this topic comes up a lot, but it seems that everyone's case is different enough that what works for one person doesn't necessarily work for the next person. Like a lot of others who have posted here, I am trying to get my PIhole admin screen to show hostnames instead of IP addresses for client machines.
Details about my system:
Here is where I may differ from other posters that I have found thus far. My network is set up as an AD domain, and I am using Windows Server to handle DNS and DHCP. I have a Raspberry PI running PI-hole, and it seems to be working perfectly in its role, so no complaints or problems there.
My router is a Unifi USG (also fairly common, I've seen), but again, all it's doing is routing for Internet access.
So, router is 192.168.1.1, AD/DNS/DHCP server is ...1.170, and PI-hole is ...1.46 (there is a method to my IP madness, I swear).
What I have changed since installing Pi-hole:
I have made changes to DNS servers used by PI-hole, messed with conditional forwarding, made changes to what my DHCP server sends as name server to clients, the whole bit. Nothing has worked.
How PI-hole and other bits are set right now :
PI-hole:
- Using Google DNS servers and I also have my internal DNS (1.170) set as custom server #1.
- "Only allow local requests" is checked.
- "Never forward non-FQDN A and AAA requests" is checked
- I have enabled conditional forwarding, with CIDR set to 192.168.1.0/24 and DHCP server set to 192.168.1.170. Domain name is set to MCQ.org (name of my AD domain).
Router:
- WAN DNS server is set to 192.168.1.170 (which has Google DNS set up as DNS forwarders)
- DHCP server is disabled
Windows Server (AD/DNS/DHCP):
- DHCP server is setting PI-hole (.46) as primary DNS, itself (.170) as secondary DNS
- As mentioned before, Google and my ISP's DNS servers set up as DNS forwarders
If possible, I'd like to keep using Windows DHCP, as it's more fully-featured than DHCP servers available to PI-hole or Unifi router. I have fewer opinions about Windows DNS, other than having it on same server is convenient.
Sorry for the info overload, but I figured the more I list, the more likely someone will look at it and say, "Here's your problem, idiot." and I totally get that. I get the feeling that I am one or two settings from where I want to be, but there are so many possibilities and combinations, the number of non-workable configurations is exponentially huge.
Thanks!
Todd