pi-hole does not block ads

Could someone help me, I uploaded a vm with ubuntu and installed the pi-hole, I set it to dns the system's ip, it browses, but it does not block ads from any site, could anyone help me?

Check ipconfig /all from a command prompt in the computer getting ads to confirm your pi-hole's IP address is your only DNS server.

Also, on the vm, type "pihole status" from a terminal to make sure it's blocking.

this way running the cmd you said.

Great, pi-hole is up.

On your Windows computer:

  1. Click the Windows Start Button .
  2. In the search box type cmd .
  3. In the search results, Right-Click on cmd and select Open

Then type "ipconfig /all" and confirm that the line DNS Servers has the IP address of the pi-hole and only that address:
As in:
Default Gateway . . . . . . . . . : 10.0.0.1
DHCP Server . . . . . . . . . . . : x.x.x.x
DHCPv6 IAID . . . . . . . . . . . : y
DHCPv6 Client DUID. . . . . . . . : z
DNS Servers . . . . . . . . . . . : 10.0.0.101

it's like that, set the dns, browses, but doesn't block the ads.

From the pi-hole web interface, you could run a diagnostic (check upload option) and a moderator could see what's going on, including what websites are included in your gravity database?

Maybe the service serving these ads aren't on one of the lists. Here's a site that says it can see if a blocker is working: Pi-Hole Ad Tester – Fuzz The Pi Guy

What do you query logs look like in the pihole interface?

Your DNS server is in another network than your PC. Does your PC have reachability to the Pi-Hole VM (can you ping it from your PC)?

1 Like

I have a mikrotik network with about 400 active clients, I played the pihole for them to use, but there was no blockage. Could someone do a remote access to solve the problem?

ping normally, and access too.

I find it interesting that your PC can still browse the internet. If 172.16.1.5 is your Pi-Hole and it didn't work, then you wouldn't be able to do DNS queries as you don't have any secondary DNS setup. I'm not entirely sure if I have a good grasp of your network though.

If you go to the Pi-Hole Web GUI, do you see any DNS query statistics there? And do you see any blocked queries?

Me fixing the pihole ip range on my machine it browses normally, the queries count on the pihole platform, it just doesn't block ads

That's strange. Is only the Pi-Hole running on VM? Are your clients regular computers, or are they also running on VM?

my clients log into mikrotik via fiber optics. everyone can reach ate the pihole consult her

I'm not really sure then. I don't have much experience with Pi-Hole in VM. Also, I don't really know how your VM environment is setup. Be careful with remote help, letting strangers on the internet control your devices is not very safe. You never know if they have malicious (bad) intentions.

1 Like

Browsers may by-pass Pi-hole if configured to allow DoH (DNS-over-HTTPS).

Run from a client in your network, what's the ouput of

nslookup pi.hole
nslookup flurry.com

I did not understand your answer.

Go to cmd on one of your PC that doesn't get adblock. Then run these commands in cmd:

nslookup pi.hole

and

nslookup flurry.com

Here is an example:

1 Like

The result for the first command looks ok - your client has been using Pi-hole for that DNS request.

But flurry.com should have been blocked by Pi-hole.

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

Moderator edit: explicit debug log removed.

For your own privacy and security, please do not post your full, unsanitised debug log output. When providing a debug token, please post just the token that is shown once the debug finishes, preferably by copy and paste.