How to show Hostnames in Pihole while using Pfsense?
-
Hello everyone!
Before I got Pfsense I only used Pihole in combination with my router/modem combo. I liked how the hostnames where resolved in Pihole so I knew what DNS requests came from what device.Now I have upgraded my network and it looks something like that now:
Modem (bridge mode) -> Pfsense -> TPLink Router (AP Mode)
On the TP Link Router I have connected my PC, NAS, Pihole (raspberrypi) and some devices over Wifi. But now the pihole shows only IP adresses instead hostnames. On Pfsense when I look to the DHCP Leases all devices show up correctly (apart from my smartphone it has two dchp leases somehow). Is there a way to make pihole show the hostnames like it used to without pfsense in between?My pihole DNS settings are:
||||
I have Unbound as a custom Upstream DNS Server hence the 127.0.0.1#5335 IPv4 adress under Custom 1PfSense Settings:
System/ General Setup
DNS Server Settings:
DNS Server: IP from Pihole
Hostname: piholeServices/ DNS Forwarder: Disabled
Services/ DNS Resolver: Enabled
DNS Query Forwarding: Enabled
DHCP Registration: Enabled
Static DHCP: EnabledI am quite new to networking, but it is great fun to try new things, and sometimes I have to scratch my head why something isnt working as I thought it would.
Have a great evening!
Edit: I also have the IP Adress of pihole under the DHCP settings.
-
First, make sure pfSense is pointed outside for DNS.
In PiHole have it forward local request domains to pfSense. This will allow PiHole to resolve the names. If pfSense points to PiHole for DNS this can cause a loop. -
@AndyRH
I made a local A DNS record for every IP Adress :) This also worked for me since I dont have that many devices :)