iGoX's links
Nuage de tags
Mur d'images
Quotidien
Plugins
  • ► Jouer les vidéos
Flux RSS
  • Flux RSS
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filtres

Liens par page

  • 20 links
  • 50 links
  • 100 links

Filtres

Untagged links
Secondary DNS Server for DHCP - Help - Pi-hole Userspace https://discourse.pi-hole.net/t/secondary-dns-server-for-dhcp/1874
Tue Dec 5 14:21:32 2023
QRCode
archive.org
thumbnail

To force piHole to push a defined IP address as DNS server to DHCP clients:

  1. Edit /etc/dnsmasq.d/02-pihole-dhcp.conf file:
    #> sudo nano /etc/dnsmasq.d/02-pihole-dhcp.conf

  2. Add the IP address to be push as DNS server:
    dhcp-option=6,<Pi-holeIP>,<SecondaryDNSServerIP>

  3. Save file modification.

  4. Restart pihole-FTL server:
    sudo service pihole-FTL restart

⚠️ You would have to release/renew DHCP lease on each host after that to pull the new settings.
⚠️ Change is not persistant over time as this file can be overwritten by piHole.

pihole
678 links, including 6 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service par la communauté Shaarli - Theme by kalvn