I recently discovered Pi-hole through one of Linus’ videos and thought I would give it a try. I downloaded VirtualBox and installed an Ubuntu minimal system, on top of which I installed Pi-hole. All my management is done on the host laptop, since i allocated 512 MB of RAM to the VM. I usually try to diagnose issues myself based on random forum posts, but this time I hit a brick wall. My Pi-hole simply refuses to block ads.
My router/ONT is from the ISP, and does not have an option to assign a custom DNS, so if I want to use Pi-hole, I need to manually assign it to each device in the house. Here are the steps I took:
- even before installing Ubuntu minimal, I took the MAC address of the VM and went to my router properties, assigned a static IP address.
- I installed Pi-hole with the default settings, basically “next, next, next, finish”
- Went on the host computer and set the network adapter’s preferred DNS the IP of the Pi-hole (although I don’t think it’s necessary because of next step). No secondary DNS set, so ads don’t leak through.
- Disabled my router’s DHCP, I am using Pi-hole DHCP. All my devices appear under Currently active DHCP leases and all of them can access the Pi-hole GUI. I also checked Listen on all interfaces.
- ipconfig /all correctly displays the DNS server and DHCP server. The default Gateway is my router’s IP.
- Results from nslookup pi.hole:
*** UnKnown can’t find pi.hole: Non-existent domain
7. Results from nslookup pi-hole.net:
8. Restarted router and every device in the house.
9. Ran pihole -g -f from the client, I updated Gravity from the GUI as well.
10. Played a bit with some/all of the Upstream DNS Servers.
11. Did ipconfig /release, /flushdns, /renew
12. ubuntupit.com speedtest.net and ads-blocker.com all show ads.
13. My debug token is: https://tricorder.pi-hole.net/nm6avpiqbh
I kinda ran out of ideas on what to try next, any help would be greatly appreciated.