Set Up Pi-Hole on new Network - Can't update gravity?

Hi, I'm a relative noob when it comes to PiHole, I just followed the user guide for installation 4 years ago and it worked like a charm at my old home. I also used unbound.

Now I've moved to a new house and am trying to set it up there. I got it to work - for one night. This morning all the ads were back. So I figured I'd run pihole -g to see if that helps but I get DNS resolve not available at the moment error.

Can someone please help me, in the most noob-friendly way possible? Debug log attached below.

First to fix the DNS resolve and second to fix PiHole not blocking ads...

Thank you! :slight_smile:

Expected Behaviour:

Pi Hole works

Actual Behaviour:

Pi Hole doesn't work

Debug Token:

Unable to give token, here's Pastebin:

link removed by moderator for user privacy

Your debug log shows that Pi-hole is running and is able to process queries on the open interfaces. But, there is no connectivity (at minimum on port 53) from the Pi to the internet:

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] shelvesandbookshops.tk is 0.0.0.0 on lo (127.0.0.1)
[✓] shelvesandbookshops.tk is 0.0.0.0 on wlan0 (192.168.1.203)
[✓] shelvesandbookshops.tk is 0.0.0.0 on wg0 (10.100.0.1)
[✗] Failed to resolve doubleclick.com via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Operating system
[i] Distro: Raspbian
[i] Version: 10
[✗] dig return code: 10
[✗] dig response: dig: couldn't get address for 'ns1.pi-hole.net': failure
[✗] Error: dig command failed - Unable to check OS

Hi thank you, what does that mean? How do I fix it?

It means something is blocking or interfering with port 53 traffic. Are you running any firewall or other software on your LAN that will block or re-route port 53 (DNS) traffic?

Not that I'm aware of - is there any way to check what's blocking the port, or changing the port within Pi?

Please run the following command twice and share the output:
Once from your Pi-hole machine, and again from a client within your network:

nslookup flurry.com 80.241.218.68

Thank you!

From my PiHole:

;; connection timed out; no servers could be reached

From another client:

Server: dismail.de
Address: 80.241.218.68

DNS request timed out.
timeout was 2 seconds.
Name: flurry.com
Address: 0.0.0.0

Maybe my issue has to do with /etc/network/interfaces?

I set it to:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.203/24
gateway 255.255.255.0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

I read online some guides on how to set it up but maybe I got it wrong?

It also tells me "Gateway didn't respond" in the debug log for IPv4 Gateway

Following this thread:

https://forums.raspberrypi.com/viewtopic.php?t=152670

I found the hint to use:

sudo ip route add default via 192.168.1.xxx # using the result from Windows.

This worked like a charm to get my Pi back up and connected.
The previous command for the flurry.com lookup now yields:

Server: 80.241.218.68
Address: 80.241.218.68#53
Name: flurry.com
Address: 0.0.0.0

However, it still is not blocking any ads.
I now have a debug token: spJ9fauX

Please help me figure out why it's not adblocking. Thank you

Apparently Pi-hole is working and blocking.

Are you sure your devices are using it as DNS server?

This won't survive reboots - you haver to update your OS's network configuration.

That looks like a netmask, not like a proper gateway address.
Your router's private range IP address should show up there, i.e your 192.168.1.xxx.

Note that Raspberry Pi OS has switched to dhcpcd as its preferred network configuration tool with Raspbian Jessie in 2015. While it is still possible to configure your NICs via /etc/network/interfaces, it may interfere with your OS's dhcpcd configuration.
In addition, dhcpcd will probably be replaced by NetworkManager in one of the next releases. For the current 11/Bullseye, NM is still optional.

This is an OS level network configuration issue.
You should consider to consult other forums specialising in networking as well.

I am sure that for IPv4 it is yes. I think the issue is that the router auto-switched to IPv6 and I can't configure IPv6 to run via Pi - it's a Spectrum provided Router that only has limited functionality through an App, I couldn't find any IPv6 settings on there.

How do I do that? Do I simply put the gateway into the dhcpcd.conf?

My dhcpcd.conf contains

interface eth0
static ip_address=192.168.x.y/24
static routers=192.168.x.z
static domain_name_servers=1.0.0.1

Where:
192.168.x.y/24 is my pi-hole's local address and netmask
192.168.x.z is my default route to the internet

You don't need to obfuscate any of this. Everybody uses the same private IP ranges.

I cannot provide a straight answer to that.

With a current default Raspberry Pi OS 11/Bullseye, editing your /etc/dhcpcd.conf would suffice.

However, since you seem to have used /etc/network/interfaces in the past, the resulting overall configuration may not behave as expected.

You'd have to consolidate and adopt your network configuration according to the configuration steps you've applied in the past (which potentially may or may not involve further networking tools as well).

As said previously, this is an OS level network configuration issue.
You should consider to consult other forums specialising in networking as well.

Alternatively, instead of trying to repair your current mixed configuration, you could start with a fresh current OS image and install Pi-hole again.
If your RPi is just hosting Pi-hole, that may be your fastest and most hassle-free option.

Ah thank you.
Does that make sense considering that it doesn't seem to be able to block IPv6 and there doesn't seem to be a solution for it?

We haven't established in which way IPv6 may or may not affect you.
That would be an entirely different issue.

If it is an issue, it would be a router configuration one.

Yeah, I don't believe that I can change it with the router I have right now - Spectrum is very limited.

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