AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store

DHCP server setup

Advanced Configuration

A DHCP (Dynamic Host Configuration Protocol) server automatically assigns IP addresses and network settings to devices on a network, enabling them to communicate with each other and access the internet.

Benefits of Using Pi-hole as Your DHCP Server

Enhanced Ad Blocking

Pi-hole's DHCP server automatically sets itself as the DNS server for all devices, providing comprehensive ad blocking and tracking prevention without requiring manual DNS configuration on each device.

Advanced DNS Management

You can configure custom DNS settings through Pi-hole, enabling features like local hostname resolution and domain-specific blocking.

Improved Device Management

Pi-hole can assign recognizable names to devices, making its web interface more user-friendly and informative. The system also simplifies static IP address assignment through its intuitive interface.

Centralized Control

Managing all network-related settings, including DNS and IP assignments, from a single interface reduces complexity and eliminates dependence on router or modem capabilities.

Router Independence

If your router offers limited or outdated DHCP features, Pi-hole can provide greater flexibility and control over your network settings.

Important Considerations

Before switching to Pi-hole as your DHCP server, keep in mind:

  1. You must disable your router or modem's DHCP server to prevent IP address conflicts
  2. Pi-hole needs to maintain constant uptime to ensure reliable network operation

Setting Up DHCP Server on Pi-hole

Prerequisites

  • Pi-hole installed and running
  • Admin access to your Pi-hole interface
  • Admin access to your router
  • Physical or SSH access to your Pi-hole device

Step 1: Disable Router DHCP

  1. Log into your router's admin interface
  2. Locate DHCP settings (usually under LAN or Network settings)
  3. Disable DHCP server
  4. Save changes

Note: Do NOT disconnect from your router yet - keep your session active in case you need to revert changes.

Step 2: Enable DHCP in Pi-hole

  1. Access Pi-hole admin interface (http://pi.hole/admin or your Pi-hole's IP address)
  2. Navigate to Settings > DHCP
  3. Check "DHCP server enabled"
  4. Configure DHCP settings:
    • Range of IP addresses to hand out (e.g., 192.168.1.50 to 192.168.1.250)
    • Router (gateway) IP address
    • Local domain name (optional)
    • Enable IPv6 support (if needed)
  5. Click Save

Step 3: Configure DHCP Options (Optional)

  • Set static IP reservations for specific devices
  • Configure DHCP lease time
  • Set up conditional forwarding if needed

Step 4: Verify DHCP Operation

  1. Disconnect and reconnect a device to your network
  2. Verify it receives an IP address from Pi-hole
  3. Check Pi-hole's DHCP leases page to confirm
  4. Test internet connectivity
  5. Verify DNS blocking is working

Troubleshooting

No IP Address Assigned

  1. Verify router's DHCP is disabled
  2. Check Pi-hole DHCP service status: bash sudo service pihole-FTL status
  3. Verify IP range doesn't conflict with router
  4. Check network connectivity to Pi-hole

Can't Access Internet

  1. Verify gateway IP is correct
  2. Check DNS settings
  3. Ping gateway to verify connectivity: bash ping 192.168.1.1

Static IP Conflicts

  1. Review DHCP lease table
  2. Check for duplicate IP assignments
  3. Clear DHCP leases if necessary: bash sudo rm /etc/dnsmasq.d/04-pihole-static-dhcp.conf sudo service pihole-FTL restart

Best Practices

  1. Keep Pi-hole on a static IP address
  2. Set up a backup DHCP server if possible
  3. Document your network configuration
  4. Regularly backup Pi-hole settings
  5. Monitor DHCP lease capacity

Recovery Plan

If DHCP setup fails:

  1. Keep router admin session open
  2. Re-enable router DHCP if needed
  3. Document any error messages
  4. Check Pi-hole logs: bash sudo cat /var/log/pihole-FTL.log

Something here not working for you? Ask in the community — other makers and the Little Bird team read it.

Search The Pi-Hole Book

Type a word or phrase to search all 74 pages.

Ask The Pi-Hole Book

Answers come from this book only.

Talk to The Pi-Hole Book

Ask it out loud and it answers in your ear, from this book's own pages — the right command, the right setting, and the page it came from.

Unlock the tutor

Already bought it, or had an account on books.littlebird.com.au? Sign in.

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.