Better way to rout router pihole settings?
I'm stumped on how to get pihole to be the only DNS server. I think it's working for my LAN Desktop with the exception of Mircrosoft Edge, which I assume its Edge being Edge. Ad block tests are done on this site.
Right now I tested on my personal phone manually reserving a DHCP for it, and manually typing in the DNS as per here, which seems to work for now, though if that is my only recourse then it would be a bit of a shame since it means I would have to do so for the few remaining devices amongst my family.
If it helps, I'm using pihole on a Pi Zero W on wireless (couldn't get the ethernet adapter working), followed mostly this LTT forum guide but installing Raspberry Pi OS Full, did an initial update non-headless of the OS, before proceeding to do a headless install.
My router is an ISP provided Halo Router and if it helps, this is my debug log.
EDIT: I had no luck setting up DNS over HTTPS using cloudflared, though I did come across this post and might spend time understanding it in the future. For now I would 1st like to see if I can get my Zero W to run pihole as recommended before moving on to trying out getting ethernet to work, DNS over HTTPS, 2nd pihole etc
EDIT2: Due to timezone differences expect replies to take more than 12h, mods feel free to delete this post at your discretion.
EDIT 3: Under prerequisites on pihole doc i have not tinkered with any of those iptable/ port things, might that be an issue? Off to bed now.
EDIT 4: Ads are only selectively blocked on my browser, so looks like pihole isn't blocking my ethernet desktop either, perhaps my browsers/ desktop has its own ad block settings/ dns settings overriding it? Will have to check when I get back. Other mobile devices are not connected/ blocked by pi though, so that's another issue...
Posted Nov 30, 2020, 5:21 PM UTC · edited
Hmm. Have you configured your router to point DNS to Pihole? That should handle it for all your devices.
pretty sure i did , unless my router cannot do so. When I put DNS2 to be same as 1, internet gets knocked out so I went with 8.8.4.4 for dns2. Unless I'm not supposed to use 192.168.1.171 for dns1? That shouldn't be the case though since putting that as my dns on mobile blocks ads.
Can you leave DNS 2 blank? If you leave the secondary Google DNS in there, your router is likely to use it, bypassing the Pi. You should indeed put the IP address of your Pi Hole in DNS 1. Make sure 192.168.1.171 is allocated statically to your Pi MAC address.
Tried before, access to websites immediately not available, same for when i put in dummy addresses like 10.20.30.40 or having dns1 and 2 be the same.
Is your Pi definitely on 192.168.1.171? Have you assigned a static IP to the Pi Mac address?
When I first installed a Pi Hole, my router simply wouldn't work with a local DNS. I had to use a different router in the end. I saw the same behavior, no DNS resolution and so nothing Internet related was working.
I'm not using DNS2, only DNS1. Some routers won't allow this.
I also am using the DHCP server in Pihole.
It seems pretty solid so far. I just need to figure out how to automate updating the filters.
How i wish my router was like yours, though that probably doesn't explain my putting the same pi dns for 1 & 2 makes me unable to surf the net. Would you say making pihole your DHCP server instead of the router was the trick that solved your issue?
Do you think a script like this could help with the updates of your filters?
edit: nt like it would work for me, i saw a on off switch for dhcp on my router i think, toggled it but the router didn't allow
I have an Orbi, and my reason for not using it's DHCP server is that it would sometimes stop serving IP addresses (though everything else worked properly).
I hate to suggest it, but upgrading your router might be a good investment.
Good luck!