Table of Contents

PFSense - DNS - Local DNS on PFSense, everything else on PiHole

Have Pi-hole resolve hostnames of DNS clients, and report by hostname rather than IP, then DNS queries should follow the path:

client -> Pi-hole -> pfSense -> Internet

Configure pfSense

Navigate to System → General Setup.

In System:


In DNS Server Settings:


Configure DNS Resolver

Navigate to Services → DNS Resolver → General Settings.

In General DNS Resolver Options:

In Host Overrides:

NOTE: These should have the same domain as that specified in System → General Setup.


Configure DHCP

Navigate to Services / DHCP Server.

Select the Interface to configure, such as LAN.

In General Options:

In Servers:

In Other Options:


Configure Pi-hole

Navigate to Settings → DNS:

In Upstream DNS Servers:


In Advanced DNS settings:


NOTE: Renew the DHCP leases on the clients.

The pi-hole server will automatically do reverse lookups on the clients.

Therefore the pi-hole should show the host names instead of IP addresses.