Configuring a stand-alone DHCP/DNS server
This recipe describes how to configure pfSense as a stand-alone DHCP and DNS server.
How to do it...
- Configure pfSense as a DHCP server. See theConfiguring the DHCP serverrecipe 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...