Please follow the below template, it will help us to help you!
Expected Behaviour:
I'd like the dashboard and etc., to show client DNS names, via reverse lookup.
Actual Behaviour:
But I'm actually seeing just ip addresses.
Clients via Win Server DHCP are told pihole.agpllc.local is the DNS server. athena.agpllc.local is the Win Server, and has the reverse entries. If I do a reverse lookup via pihole, it works right (below), but /etc/resolv.conf has just the Google DNS entries 8.8.8.8 8.8.4.4, and that yields NXDOMAIN (below).
Perhaps this is a misconfiguration on my part? Something I need to do? BTW, I'm not entirely sure I had the dnsmasq.d file set right to begin with, but it is now (below)
in the pihole webgui under setting and DNS look at the 5 options conditional forwarding and p[otentially the other options there should resolve this issue.
in the pihole webgui under setting and DNS look at the 5 options conditional forwarding and p[otentially the other options there should resolve this issue.
Yea, nope. Unticking both boxes yields no difference.
It doesn't work, even removing the DNS1 and DNS2 entries from ifcfg-eth0 doesn't stop NetworkManager from overwriting (it puts a 'search ' line in resolv.conf even if it isn't putting nameserver lines in).
Nevermind that, if I manually edit resolv.conf and then verify that nslookup is pulling from the right nameserver, I still can't see reverse-lookedup names in the dashboard or in reports... do I need to refresh something, or delete logs, or something?
That is a NetworkManager issue then. Did you see the first comment from the link I gave you?
If you are using localhost for the Pi's DNS, and it resolves reverse lookups like you have shown when you manually changed the resolver, then when FTL re-resolves the hostnames of the clients they will be correct (they are cached to prevent spamming of reverse lookup queries).
The link above says just remove the "DNS1" and "DNS2" entries from NetworkManager.conf. If I do that, I end up with resolv.conf without the nameserver lines, but still gets rewritten by NM:
[root@pihole NetworkManager]# cat /etc/resolv.conf
# Generated by NetworkManager
search agpllc.local
I couldn't figure out where the 'search' line was configured. Also, the NM documentations seem to say that if you put
[main]
dns=none
rc-manager=none
in NetworkManager.conf that'll cause it to leave resolv.conf alone. Apparently that's not true, or something. EDIT: Need to 'service NetworkManager restart' after modifying NetworkManager.conf (duh). Now it leaves resolv.conf alone.
I was able to get resolv.conf looking kinda like I wanted by editing the ifcfg- file with
DNS1=127.0.0.1
Which may be a bit of a hack, but it seems to be working now.