- Configure pfSense as a DHCP server. See the Configuring the DHCP server recipe for details.
- Create DHCP mappings for every device in the system that will obtain its IP address automatically through DHCP. See the Creating static DHCP mappings recipe for details.
- Navigate to System | General Setup.
- Ensure that no other DNS servers are specified.
- Check the Allow DNS server list to be overridden by DHCP/PPP on WAN checkbox. This will enable pfSense to resolve external addresses using the DNS servers provided by your ISP through your WAN connection.
- Click on the Save button.
- Navigate to System | DNS Resolver.
- Check the Enable DNS Resolver checkbox.
- Check the Register DHCP static mappings in the DNS Resolver checkbox.
- Create a Host record for any device that needs to be resolved but doesn’t have a DHCP mapping (that is, devices that define their own IP).
- Create a Domain record for any DNS requests you’d like to redirect for a particular domain.
- When you are done, click on the Save button.
- Click on the Apply Changes button.