Raspberry Pi 4
pi-hole v5.16.2 FTL v5.22 Web interface v5.19
OS Raspbian 10
ASUS 8288 Firewall
DNS set to IP of Pihole
Pihole DNS set to OPENDNS
Windows 11 with statically assigned IP and DNS - DNS is only IP of Pihole.
I have added doubleclick.net as regex
(.|^)doubleclick.net$
This is enabled and assigned to the default group. My workstation is in the default group.
Reading through these posts, someone had the same problem with a different domain (though theirs was caused by the filter being set to disabled) and the user was instructed to run:
pihole -q doubleclick.net
dig +short doubleclick.net 127.0.0.1
pi@raspberrypi:~ $ pihole -q doubleclick.net
Match found in regex blacklist
(.|^)doubleclick.net$
[i] Over 100 results found for doubleclick.net
This can be overridden using the -all option
This is also sometimes happening with GoogleAdServices.com - though now going through the testing for this post regarding DoubleClick.net I have not been able to repeat that issue.
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:
Sorry, I did not see that part of the requesting only the token..
The Firewall\DHCP server does indeed hand out two DNS servers. But my workstation is statically assigned only the one DNS server. See attached print out of IPconfig. Wireless LAN adapter Wi-Fi.txt (763 Bytes)
This section indicates your used your Pi-device hosting Pi-hole for checking if the domain is blocked. However, this device is using Googles 8.8.8.8 DNS server for name resolution (/etc/resolv.conf).
If you want to use a specific upstream with dig you need to add an @
$ dig +short doubleclick.net @ 127.0.0.1
I ran it with the @ symbol - (note the space) that is because if I paste the command correctly I get the following error
"An error occurred: Sorry, new users can't mention other users."
so I omitted the @ from the example above.
Do i need to change 8.8.8.8 in the resolv.conf file?
I think we can close this ticket - I flushed DNS on my workstation and since then I see no ad's at all.
I think the issue was the DNS for doubleclick was cached from when this system was on another WiFi last week that is not behind the Pi.