OPNsense Forum
Archive => 20.7 Legacy Series => Topic started by: SOUK on October 24, 2020, 08:33:58 pm
-
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.
-
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/ (https://docs.pi-hole.net/ftldns/configfile/)