Why should Pi-hole be my only DNS server?

Reduced Ad Blocking Capability

The main reason you should Pi-hole as your only DNS server is that you will see increased performance in the blocking of ads.

If you have two DNS servers (Pi-hole and something else), your network clients may not always query Pi-hole for name resolution. If a query happens to be answered from a non-Pi-hole DNS server, your block lists will not apply (since that DNS server doesn't know about them).

All Queries Need To Go Through Pi-hole First

Since other DNS servers (like Google's public ones) don't know about your block lists, they cannot block the advertisements. Pi-hole allows you to set upstream servers for legitimate queries, but if they don't pass through Pi-hole to begin with, the domains queried may not get blocked.

What About Redundancy?

If you have Pi-hole as your only DNS server and it fails, your network will stop working and you (technically) wouldn't be able to browse the Web. So many people set a secondary DNS server in a fashion similar to the screenshot below.

However, the problem with this--as stated earlier--is that your network devices may use either one of the servers to get their queries answered.

It's Not Much Of A Problem

Many existing home networks use their router as their DNS server--their only DNS server. So if your router fails, you'll also lose access to the Internet. So the difference between using just Pi-hole or just your router's DNS server is negligible.

Using A Secondary Pi-hole

If you were concerned about redundancy, you could always set up a secondary Pi-hole and use it as an upstream server for the first.

3 Likes
No internet on some devices after setting router to use Pi Hole as DNS server
Pi-hole status is enable but not blocking adds
Inconsistent blocking
Pihole DHCP issue DNS issue
Name resolution lost when restarting Fritzbox
Pihole setup issues
Single client not using Pihole even though 1st DNS is Pihole
[SOLVED] Can't see device list on Pi-Hole Admin
Everything seems to be fine but dns queries don't go through pi-hole
Alternative DNS Is Loading Ads?
My pi-hole isn't blocking ads!
Pi-hole connected to the internet, but using manually setting the DNS on the router to the Pi-hole results in a "Bad Config" Error on Browser
While using Pi-hole as only DNS, nothing is loading
My Pi Hole project
Not blocking url from pi-hole list
Pi-hole disconnects after few minuts
Pi-hole as default DNS on Netgear Orbi
Pihole not working after install
Pihole does not block IPV6 traffic
Pi.hole/admin returns ERR_NAME_NOT_RESOLVED but querries are still being logged
Manually DNS windows, have to manually change DNS every day
Questions for Setting Up Pi-Hole(s)
Re-establish connection at power down
Pi-Hole Not seeing DNS queries from other clients in network
Ads are not blocked.
My Pihole can't resolv anymore and blocking is offline
Too many queries made when 'Conditional Forwarding' is enabled
Pi-Hole Is Kinda Working?
Ad Blocking only works intermittently
Looking to install on a dual NIC router/firewall
Devices do not use Pi-hole
Unable to install pi-hole - bash: curl: command not found
Pi-Hole stops blocking ads
Synology RT1900AC DNS management : Too much DNS settings
Unable to get the Pihole to block ads
It doesn't block ads
DHCP on Connect Box (UPC) IPv4 - Help
Pi-Hole on a light switch
[Solved] Various Issues after re-install
Are my Router Settings Correct?
Pi-Hole and iptables
PiHole Router Blocking
Not blocking ads
Ads not blocking, flurry.com returns 0.0.0.0
Ads display as "Webpage not available"
Won't Block Ads
Does not open websites
No ad blocking
Issue with Apple App Store and NEST
Not blocking ads
Pi-hole working with OpenVPN but not working without it
Pihole with AX10 Archer router, LAN changes
What model Raspberry Pi should I use for Pi-hole?
Clients not connecting, not blocking
Laie braucht Hilfe bei der Einrichtung von Router und pi-hole
Pi-hole strange behaviour, h1.tivoservice.com suspect
Pi-hole not blocking ads in LAN, only VPN
Difficulties setting up router to work with Pi-Hole
Reset Pi-Hole IP after moving to a new network
How to configure router so Pi-Hole protects whole network
Better to install Pi-Hole on router or switch/ RAM usage on Pi Zero
Pihole not blocking ads on client
Pihole not blocking ads on client
[SOLVED] Pi-hole on Amazon EC2 not filtering ads
Router is answering DNS queries instead of selected DNS provider
DHCP assignment issue with only certain devices
IP mismatch and gateway not responding - Networking Configuration Issues
Installation on RPI 5 Debian 12 issue after OS update
Stop Ads from opening browsers! New To this
GUI Supported strict-order
Upgrade succeeded on Pi-Hole in a Container Station image on QNAP NAS
Pi-Hole cannot resolve any request
DNS and Draytek Router
Pihole does not report the actual traffic
DNS/FTL keeps dying
Help with new set up
Ads don't get blocked in Chrome - works fine in other browsers
[BUG] Pi-Hole seems to not work on clients without hostnames with conditional forwarding turned on
Empty queries on with eero DHCP
IP configuration
Still seeing a lot of ads
Help understanding local DNS
Losing IP if remove eth0 cable or modem restart
Can't connect to internet after the pi-hole setup restarts
Why can't I query Pi-Hole using dig?
Wired device not using Pi-hole
Blacklist whatsapp
Smart devices no longer function
Ubuntu Mate - pihole configuration
Local DNS Records only working on some devices
Local DNS Records only working on some devices
Help setting up on windows 10
Changing dns manually on pc kills internet
Welcher alternative DNS-Server ist sinnvoll?
PiHole has stopped blocking ads
% blocked dropped from +20% to 9%
Router Using Backup DNS After New Pi-hole Install
Clients bypass pi hole to DNS2 and if hardcoded to Pi Hole, will not resolve
Ads not being blocked
Firefox bypassing Pi-Hole even after setting Firefox network.trr.mode to "5"
Pihole, Mac and Google Wifi
No Internet Access Upon Using PiHole IP as DNS
Set up on Ubuntu, running but ads aren't being blocked
Pihole + dnscrypt = pihole FTL crash
Configuring DNS Server - LAN or WAN Settings on ASUS Router?
piHole cripples internet speed
Local hostnames not resolving
Couldn't able to Block Ads with Primary and Secondary DNS
Pi-hole doesn't log since Huawei Modem is in use
Pihole, unbound, router
Router making thousands of PTR queries back to Pi-Hole
Pi-hole not responding to Macs
Pi-Hole shows no queries or clients in dashboard and seeing ads again
Pi-Hole blocking behaviour not understandble
Pihole not working On Some Browsers
Adding pihole DNS to router changes router admin and DHCP pool
[RESOLVED] PiHole seems to be alive and running, but blacklisted ads getting through
Assign aliases to hw address for easier device identification with dynamic ip
Pi-hole does not blocking ads anymore
IOS 16.1.1 and higher for iPhone and iPad now never blocked
DNS resolve timeout outside of localhost
Client can't connect to internet
Pihole Setup - Having Plex and Qbittorrent issues
Pi-Hole works for a short period and then tapers off to nothing
Not seeing expected domains blocked
Pi-hole after a while cuts off connection
Old local domain keeps appearing. Though new local domain's being used
Unable to synchronize system time, Pi-hole not working
Newbie help requested - DNS config for when outside local network
Question about secondary dns
Custom DNS entries not working
Pihole not working correctly on mobile devices after ISP change
Reinstalled Pi Hole after forgetting password to Ras Pi - Adds not longer being blocked
Almost all requests coming from the router despite DHCP server being enabled
I am unable to block domain using pihole
Changed Upstream DNS Server and Now Pi-Hole Not Working
Pihole is Active and blocking, but there are still a lot of ads appear
Pi-hole no longer working as primary DNS - With iOS 16
Pi-Hole not getting any queries
DNS ENTRY
PiHole is connected to network and can see devices. Doesn't block ads
PiHole Docker Ubuntu 22.04 Not Blackholing all ads
Devices are not using Pi-hole
DNS For Pi-hole it self
Devices in network not using Pi-hole
Pihole not blocking any ads after clean install
Pi-Hole and VINCENT modem-router: DNS issues, pi-hole managing some traffic but Internet not working
PiHole randomly working
Ads show with a 5-10 seconds delay
Gravity Update: DNS resolution is currently unavailable
Unable to use Fully Qualified Domain Names in LAN
Pi-Hole not blocking ads
Not all devices can connect to DNS
Pihole on netgear router and alexa
DNS/ipv6 Issues seem solved Win10 Mikrotik Router
Phiole stopped working
Secondary DNS Server for DHCP
Dnsmasq daemon is failed
How to Configure Pi-Hole with pfSense for simple home network
Discrepancies in logged requests between comparably clients
Speedport W 724V
IP not matching setupVars.conf
Pihole receives no requests - home has no connection when pihole is set as dns
Hardware/Software Requirements
Random DNS resolution failures for pihole -g and other commands

Curious...re: using a secondary pi-hole, what is the advantage (if any) of configuring the 2nd pi-hole upstream vs. running them in parallel. I've configured mine in parallel and tested by taking one of them offline, seems to work as expected. Is it better to configure one of them upstream? If so, why?

4 Likes

I'd like to see the pros and cons too!

Running the devices in a parallel fashion is probably the preferred method. If you have each Pi-hole set to the same upstream and each Pi-hole is set on the client then if either device goes down, the other will still serve DNS traffic.

Using the stacked configuration you still have a single point of failure, if the serving Pi-hole device goes down then your DNS would be affected. If the upstream Pi-hole goes down then, again, you would have problems. If the clients are set to use just a single Pi-hole as the resolver then you still have a single point of failure. You can use the stacked configuration as long as the clients have both IP addresses set as resolvers.

Where the stacked configuration comes in to play is if you are running DHCP. Since you can only have a single authoritative DHCP server, you wouldn't want the parallel Pi-holes both acting as the DHCP server for the network.

7 Likes

I understand that Pi-hole should be my only DNS server in my home network. Using Pi-hole's DHCP server makes that possible for me. However, when I am elsewhere, I don't what to use any DNS server but specify which one's to use. @DL6ER suggested using a VPN connection on, for example, Android. However, my local VPN on Android is already the NetGuard.me firewall. I therefore cannot easily add another VPN connection. Although somehow this should be possible via SOCKS5 but I don't know how. I therefore wonder how I can use PI-hole's DNS server at home and some specified DNS servers on the road without having to change my DNS settings manually all the time. Any ideas what I can do about this?

On my secondary (failover) Pi-hole should I also add the Custom 1 (IPv4) but this time to the primary Pi-hole that is also the DHCP server? Or just from the main to the secondary?

In that scenario, if Pi-hole 1 (DHCP server) fails, queries to Pi-hole 2 will fail as it's upstream server is down (unless you have another upstream server set).

It's kind of confusing...

Thanks. Then unless is my router running as a DHCP server the two pi-hole setup is kind of useless?

thats the reason why i still haven't decided to use the phole on my network.
what if the pihole fails / not reachable for which reason ever?
i cant tell my fritzbox, which is working as a dhcp, to distribute a second dns server address additionally to the pihole address.

which makes it useless for me, since too risky, if the pihole server fails.

or doesnt it make sense distributing a second dns address (from the fritzbox) to the clients, because it wouldnt block all content that would have been blocked by the pihole?

Pihole won't failed. I've been running over 3 months without a reboot. It's very stable!

For those with a Mikrotik routerOS router, you can use the /tool netwatch feature https://wiki.mikrotik.com/wiki/Manual:Tools/Netwatch for unattended failover monitoring. Eg: if the pi-hole host is offline, run a command to change dns settings.

1 Like

I had my pihole go down and every time it does while on TV watching YouTube it kicks me out of DNS.

I already figured out to set up a secondary pihole and use the main pihole as it's DNS.

I have one Raspi 3b that for some reason the network keeps disconnecting within 5 minutes of re-plugging the network cable.

Secondary DNS server is crucial!

Oops I just gravedug a thread. Sorry everyone :slight_smile:

It's Not Much Of A Problem
Many existing home networks use their router as their DNS server--their only DNS server. So if your router fails, you'll also lose access to the Internet. So the difference between using just Pi-hole or just your router's DNS server is negligible.

Well, you see, in most parts of the world (including where I'm from), power cuts are quite common. We have UPS (small battery banks) just for routers. So, the router is always powered and never goes down.

But a pi, on the other hand, is powered directly through the mains supply. So, if electricity is disconnected, the router is on, but the pi is disconnected! Not ideal.