ASUS USING PI-HOLE

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

Neil62

Senior Member
Those little things rarely fail. I haven't seen a failed one, actually. Your RT-AC86U may fail before the Pi. :)
Ya correct, not so much the machine, but the SD cards can be found wanting at times....
 

Neil62

Senior Member
True. The kit I ordered is coming with Samsung Evo+ 32GB. Let's see how far it can go. :)
Nice, I have the same size card, but am using a SanDisk Ultra...
 

dave14305

Part of the Furniture
I picked up a Raspberry Pi 4B with 4GB RAM and a 32 GB SD card at a MicroCenter not too far from (but not too close to) where I live. Not sure exactly what I’ll do with it yet, but I’m playing with Pi-Hole. I imagine with some ingenuity a script could be written that would pull the clientlist from the router over SSH and format it in dnsmasq configuration files in /etc/dnsmasq.d. Conditional forwarding is fine for me, but I can see how it falls short with too many devices.
 

K-2SO

Very Senior Member
I picked up a Raspberry Pi 4B with 4GB RAM

This one is the fastest, but runs hot. Reaches 80C quickly and starts to throttle.
Get a cases with heatsinks + fan for the final product. I ordered 3B+ to avoid the fan.
 

dave14305

Part of the Furniture
This one is the fastest, but runs hot. Reaches 80C quickly and starts to throttle.
Get a cases with heatsinks + fan for the final product. I ordered 3B+ to avoid the fan.
Mine is hanging at 53c for now. Couldn’t decide which case would be best so I have the cheap official case for now. This case got good cooling reviews in the MagPi magazine, but it’s kinda hard to find.
 

Neil62

Senior Member
I picked up a Raspberry Pi 4B with 4GB RAM and a 32 GB SD card at a MicroCenter not too far from (but not too close to) where I live. Not sure exactly what I’ll do with it yet, but I’m playing with Pi-Hole. I imagine with some ingenuity a script could be written that would pull the clientlist from the router over SSH and format it in dnsmasq configuration files in /etc/dnsmasq.d. Conditional forwarding is fine for me, but I can see how it falls short with too many devices.
If anyone has a script that can do as you suggest that would great if they are willing to share it

Sent from my SM-G955F using Tapatalk
 

K-2SO

Very Senior Member
@dave14305 @ColinTaylor
Is there a way to delay calling the second available DNS with 1 second?

Pi-hole and Google DNS as an example case below:
The Pi is running Unbound as resolver, no forwarding. It needs some time to do non-cached queries. With Pi-hole IP in DHCP and Google IP in WAN some queries go through Google. It never happens with Dnsmasq or Unbound as forwarder to Google because Google replies very fast in 10-12ms. Unbound may need >300ms for some queries as per logs.
 

dave14305

Part of the Furniture
Is there a way to delay calling the second available DNS with 1 second?
That’s up to the DHCP client to determine. The router is out of the picture when a different DNS server is given via DHCP. Usually Windows will timeout after 2 seconds, I think.
 

K-2SO

Very Senior Member
Yeah... Windows does exactly what I need, but some other clients time-out faster. I was hoping you guys know some tricks to hold this process on the DHCP side. Let me see how it is going to work after Unbound builds some cache. I would like to keep the fail-safe configuration.
 

ColinTaylor

Part of the Furniture
Yeah... Windows does exactly what I need, but some other clients time-out faster. I was hoping you guys know some tricks to hold this process on the DHCP side. Let me see how it is going to work after Unbound builds some cache. I would like to keep the fail-safe configuration.
Just speculating, but I can image some OS's like Android or Linux configuring their DNS queries for parallel operation (rather than fail-over). Like dnsmasq's strict-order and all-servers options which can be used to favour the fastest responding server.
 

K-2SO

Very Senior Member
Argh... I see it now. Android sends some queries to Google as hard coded DNS. iOS goes in order, but much faster than Windows. I haven’t checked the exact timing info, but this is what happens in the logs. Hmm... may have to switch to plan B with Merlin.
 

K-2SO

Very Senior Member
After a lot of playing with Unbound settings I figured out Google always wins with the enormous cache they have and local servers. Pi in DHCP as forwarder to Google and slower in my area Cleanbrowsing in WAN solved the problem. Google replies in 10-12ms, Cleanbrowsing in 50-70ms. As a result no client uses Cleanbrowsing. Only the router itself and clients when the Pi is down. Not the solution I was after but it works and the web pages load instantly.
 

K-2SO

Very Senior Member
So how should the router be set up then so the pihole uses/obtains client names and not host names?

Pi-hole v5.0 is available now - https://pi-hole.net/2020/05/10/pi-hole-v5-0-is-here/
You can use the new Local DNS Records item in GUI and set user-friendly names. No more IPs in Dashboard and Query Log. :cool:

Untitled55.jpg
 
Last edited:

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top