I've been impressed with the simplicity of pi-hole over pfblockerNG, and recently wanted to switch to using it full time. I'm currently running Pfsense as my main router and when changing the settings on the router itself to look at pi-hole for DNS, all top clients show as just local host.
I've disabled 127.0.0.1 as the DNS used by the router, enabled pi-hole within the General settings as the primary, google as the backup.
under DNSforwarder enabled it, setup dos query forwarding to use this list in sequential order. under DNSresolver, enabled this.
What am I missing that would make pi-hole think all requests are coming from the router itself instead of passing along the DHCP pfsense is handing out?
To second @deHakkelaar's question: It is quite likely that the DHCP settings you hand out let the clients chose your router as DNS server, which - in turn - is forwarding these requests to the Pi-hole, which sees the router as origin of all requests as a result.
You have to have the clients query the Pi-hole directly in order to get accurate origin readings in the Pi-hole logs and statistics.
Though you did the wrong lookup "nslookup pi2" instead of "nslookup pi.hole", it is clear to me that your clients are contacting your router 192.168.1.1 first for DNS resolution instead of your Pi-Hole 192.168.1.16
I don't know pfSense myself, but can you post a screenshot or something similar so we can guess together what might be the correct way of configuring it?
Having said that, you can also use the Pi-hole DHCP server (turn off the DHCP server in your router or wherever it is turned on) which would solve these issues immediately as it will by default hand out the Pi-hole's IP address as the only DNS server.
Adding to this, your router is probably functioning as the DHCP server for your network handing out network details to the clients such as IP address, gateway, time service and DNS servers.
So you need to find the DHCP server section on the router and see if you can change the DNS server setting handed out to the clients into that of Pi-Hole.
If not possible, do as @DL6ER suggested and flip on DHCP on Pi-Hole ... after turning DHCP server off on the router.
so there are a ton, TON of options in PFsense.. not sure we could do it with a screenshot or two.
I'd really like to have pfsense handle everything but DNS. I guess I just need to better understand what features need to be changed within pfsense to handle just DNS (if that's even possible).
Tntdruid - thank you for the missing part, DHCP DNS wasn't specified. I was focused on the system > general DNS section.
After that, enabling DNS forwarding under DNS resolver, DHCP resolving checkboxes etc. Then to the DNS forwarder section, enabling it on a different port, and a few boxes below. All is showing as individual IP's now in PiHole.