Ad Blocking doesn't work

Expected Behaviour:

The pi-hole instance is running on my Raspberry Pi 3A+. It should be blocking things on its blacklist

Actual Behaviour:

The DNS Server only blocks the Page once, then when I refresh it is let straight through and stays that way

Debug Token:

https://tricorder.pi-hole.net/8LLybwIi/

Remember that you need to reconfigure the DNS server on all machines to your Raspberry Pi's IP.

Anocher option is reconfigure DNS servers on your DHCP server.

Regards.

Please post some lines from the dnsmasq log at /var/log/pihole.log showing this behavior. For each query, there should be a query line, a forward line (only applicable if Pi-hole had to forward the domain for resolution), and a reply line.

To provide some lines to look at, run the following commands first (using domains known to be in your gravity list or local domain blocks) from the Pi terminal and post these results as well.

nslookup reddit.com 127.0.0.1

nslookup www.cleansite.us 192.168.1.96

Then, from the client on which you are seeing things not being blocked, from the terminal or command prompt on that client and not via ssh to the Pi, run the following and post the output:

nslookup pi.hole

nslookup reddit.com

nslookup reddit.com 192.168.1.96

- From the Pi Itself -
nslookup reddit.com 127.0.0.1

nslookup www.cleansite.us 192.168.1.96

pi@raspberrypi:~ $ nslookup reddit.com 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: reddit.com
Address: 0.0.0.0
Name: reddit.com
Address: ::

pi@raspberrypi:~ $ nslookup www.cleansite.us 192.168.1.96
Server: 192.168.1.96
Address: 192.168.1.96#53

Name: www.cleansite.us
Address: 0.0.0.0
Name: www.cleansite.us
Address: ::

- Then from my PC's CMD. (The DNS is set to 192.168.1.96) -
C:\Users\mattj>nslookup pi.hole
Server: bthub.home
Address: fe80::7297:41ff:fe10:a2b5

*** bthub.home can't find pi.hole: Non-existent domain

C:\Users\mattj>nslookup reddit.com
Server: bthub.home
Address: fe80::7297:41ff:fe10:a2b5

Non-authoritative answer:
Name: reddit.com
Addresses: 151.101.1.140
151.101.129.140
151.101.193.140
151.101.65.140

C:\Users\mattj>nslookup reddit.com 192.168.1.96
Server: pi.hole
Address: 192.168.1.96

Name: reddit.com
Addresses: ::
0.0.0.0

Maybe for some reason the PC is just not using the DNS it is set to. I've attached proof that it is set to the DNS server.

Also, when I load reddit once, it loads fine on my PC but says it was blocked on the Pi. It's definitely a problem with my PC because it works just fine on my phone.

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