Opnsense + Pihole Host Name Query?

Started by SOUK, October 24, 2020, 08:33:58 PM

Previous topic - Next topic
Can anyone tell me if theirs a way to forward HOST name information from my Opnsense routers DHCP services on to my PiHole.  I can only ever get CLIENT IP address information when viewing PiHoles query log.  I have to keep looking up what IP belongs to what device via Opnsense DHCP list each time I'm investigating alerts and stuff on PiHole.

It would be nice if I could as I don't really want to keep logging in to one device and then having to log in to the another for confirmation.

Services: Unbound DNS: General
DHCP Registration->check

Your PiHole then needs to use the OPNsense as nameserver for the reverse lookups.

,,The S in IoT stands for Security!" :)

Yes, just turn on DHCP Registration as stated above (also DHCP Static Mappings if you use them). In Pi-Hole, turn on Conditional Forwarding under Settings --> DNS and set it up per your network configuration.

You can also add the line "NAMES_FROM_NETDB=true" (without quotes) to the /etc/pihole/pihole-FTL.conf file. See here for an explanation of this setting: https://docs.pi-hole.net/ftldns/configfile/
OPNsense 20.7.4
SuperMicro SuperServer E300-8D (primary WAN)
Protectli Vault FW1 (secondary WAN)
TRENDnet TEG-30284