Please follow the below template, it will help us to help you!
Expected Behaviour:
Ads should be blocked
Actual Behaviour:
Ads are only blocked for a short while, before they are allowed through
Debug Token:
knexlicbsh
Pihole was working for many months, then late last year I noticed ads started appearing. I would run pihole -g and this would fix it for a few hours, but then ads would start appearing again.
I rebuilt my server, and I’m getting similar behavior. Though ads only seemed to be blocked for a few minutes before they start appearing again. I’ve used several different “Adblock test” sites, and they all confirm that ads are being blocked for a short amount of time before they report ads are going through. I’m clearing my cache, not using any other adblockers, not using any custom DNS files on my clients.
How are the clients getting their DNS server IP addresses? Can you check on a client and make sure that only the Pi-hole IP address is listed as the DNS server for that node?
My router is pointing to my pihole machine for DNS, and yes, it’s the only DNS server listed. Although when it was working previously, it pointed to both pihole and 8.8.4.4
I confirmed clients are only using pihole for dns.
This site shows ads are blocked, then when I refresh it shows them unblocked.
My bad. Didn’t realize that you could expand the block.
So if you specify the router to only use PiHole for DNS (and if you’re running OpenVPN, only use PiHole for DNS as well) then there is no way for clients to use anything but PiHole. Correct?
I believe your doing it wrong.
You probably configured the WAN DNS part of the router to point to the Pi-hole IP.
Do you have a screenshot ?
Proper way is to push the Pi-hole IP address as a DNS server to its clients through the DHCP service on the router or use Pi-hole's DHCP service.
Same for OpenVPN, openvpn needs to push the "tun" interface IP address through DHCP to its clients to be used for DNS.
All the Pi-hole daemons will be waiting listening on whatever IP because they listen to all 0.0.0.0.
Have you read that OpenVPN howto ?
Am a bit rusty as been a while for me with openvpn.
EDIT: Ohw and the "nslookup" commands on the clients will tell what DNS server(s) they use.
And linked to the howto