Fix a Pi-hole that is not blocking ads, or intermittently blocking, on a TP-Link router

If you find that your Pi-hole is blocking ads only intermittently over DNS or not at all, or only with DHCP running, here’s something to try:

First, find your Pi-hole’s IP addresses in the System tab of the Settings page in Pi-hole’s admin panel:

Second, on your Mac, open the Terminal app. At the prompt, type the following and hit Return:

cat /etc/resolv.conf

(If you’re on Windows, entering ipconfig /all in Command Prompt should give you the same info, but I cannot confirm)

You should see something similar to the following appear:

In my case, my Raspberry Pi is successfully attached to the IP (the two nameservers at the bottom) and is blocking ads over IPv4. However, the two IPv6 nameservers above those (in red) do not match the Pi-hole’s IPv6 address listed in the Pi-hole’s control panel. As a result, the router is not using the Pi-hole for DNS over IPv6 and instead sending clients to Google’s DNS at

To resolve this issue, log in to your router’s control panel. In my TP-Link router’s panel there is a tab called IPv6 Support. Under IPv6 Setup, there is an option for setting the IPv6 DNS manually:

Add your Pi-hole’s IPv6 address to the primary field, and hit the Save button. Your Pi-hole should now run as expected without having to use the Pi-hole DHCP.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

PowerFan DeVlog 01 NFT Test Net Capability User Interface

About Celestia

$YAY Listing & Claiming: main updates for investors

{UPDATE} Aprende Francés para niños Hack Free Resources Generator

All 7 Level up Token Location in Fortnite ! Monarch Quests

All 7 Level up token location in Fortnite


Nairobi Tech Week CTF Teaser 2019 WriteUp

How does one spark an interest in cyber security among high school girls?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Robert McMurray

Robert McMurray

More from Medium

what happens when you type ls -l *.c and hit Enter in a shell?

Uses of shell script in organisation

Let’s install a VPN with PiVPN

Build your own TOR Proxy on a Raspberry Pi (and automate the Process with ‘ansible’)

A screenshot of “” showing that the browser is configured to use TOR.