DHCP configuration options
Initial Configuration
A DHCP (Dynamic Host Configuration Protocol) server is essentially a network service that automatically assigns IP addresses and related network configuration to devices on your network. When a device joins your network, instead of you manually configuring its IP address, subnet mask, DNS servers, and default gateway, the DHCP server handles this automatically.
Pi-hole can function as a DHCP server, providing these key features:
- IP address assignment: It can automatically assign IP addresses to devices on your network from a pool you define
- DNS configuration: It ensures all devices use Pi-hole as their DNS server automatically
- Static IP assignments: You can reserve specific IP addresses for certain devices
- Lease management: It handles how long devices can keep their assigned IP addresses
You might want to use Pi-hole's DHCP server when:
- You want to ensure all devices use Pi-hole for DNS without configuring each one manually
- Your router's DHCP server doesn't allow you to specify custom DNS servers
- You want better visibility into which devices are on your network (Pi-hole provides a nice interface for this)
- You want more control over IP assignments and DHCP options
However, there are several important considerations to be careful about:
Only run ONE DHCP server on your network. Before enabling Pi-hole's DHCP server, you must disable your router's DHCP server. Having multiple DHCP servers can cause serious network issues.
Before switching:
- Document your current DHCP settings (IP range, subnet, etc.)
- Note any existing static IP assignments
- Have a backup plan to restore router DHCP if needed
Ensure Pi-hole has a static IP address itself before enabling its DHCP server
Consider reliability - if your Pi-hole device goes down, new devices won't be able to join your network, and existing devices might lose connectivity when their DHCP leases expire
Something here not working for you? Ask in the community — other makers and the Little Bird team read it.