Pi DNS settings

**The issue I am facing:I don’t know whether to configure my Pi-holes as the DNS on my router only, or also directly in the config of my Pi’s

**Details about my system:I have a Zero W and a Pi 3b running Dietpi and Pi-hole. They act as my primary and secondary DNS.

**What I have changed since installing Pi-hole:Only


installed Unbound

With Pi-hole installed on your network, you have to make clients use it for their DNS. There are 3 common approaches:

  1. Edit the router's DHCP settings and enter the Pi-hole's static IP as the DNS server. Now the router's DHCP server will tell clients to use your Pi-hole for DNS.

  2. Switch off the DHCP in your router and enable the DHCP server on your Pi-hole in Settings > DHCP. This may be the better option if your router's DHCP is very limited and does not support editing settings.

  3. Everything continues to use you router for DHCP and DNS as before, and you tell your router itself to use your Pi-hole for DNS. The disadvantage is that on the Pi-hole every request comes from your router (so you cannot see which device is requesting it) and there are multiple DNS hops needed (client -> router -> Pi-hole > Unbound -> possibly external DNS depending on how Unbound is set up).

Method 1 is probably the most popular and flexible, followed by 2 then 3.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.