News for hackers. Stuff that matters.
Re:Ask HN: What ist your AdBlock strategy? by dizhn on Tuesday October 29, 2024 @05:15AM (#41981250)
I haven't looked at pihole once after I discovered adguard home.

https://openwrt.org/docs/guide-user/services/dns/adguard-hom...

Re:Ask HN: What ist your AdBlock strategy? by uncharted9 on Wednesday October 30, 2024 @10:08AM (#41994996)
How do you reduce the latency of the upstream DNS resolvers? The closest Cloudflare servers give me 20-25ms DNS resolution times, but with Cloudflare as the upstream DNS in Adguard Home, I'm getting more around 80-110ms.
Re:Ask HN: What ist your AdBlock strategy? by dizhn on Thursday October 31, 2024 @03:46PM (#42010736)
Is there a specific way to test that or just nslookup/dig/drill and look at the number there? I want to check this and get back to you.
Re:Ask HN: What ist your AdBlock strategy? by uncharted9 on Friday November 01, 2024 @07:00AM (#42015704)
Adguard Dashboard shows average DNS resolution time. I eventually shifted to Blocky which tracks logs of every DMS query. I strung a quick python script to make a dashboard similar to Adguard's and calculating avg resolution time for each resolved A records.
Re:Ask HN: What ist your AdBlock strategy? by dizhn on Friday November 01, 2024 @07:38AM (#42015938)
Blocky looks good too. I will check it out at some point. Thanks.
Re:Ask HN: What ist your AdBlock strategy? by cortesoft on Thursday October 31, 2024 @07:14PM (#42012503)
What sort of workloads are you doing where 60ms extra time on your DNS lookups is an issue?
Re:Ask HN: What ist your AdBlock strategy? by 3eb7988a1663 on Friday November 01, 2024 @12:05AM (#42013968)
I naively assumed most OS + routers cache DNS queries so that your typical sites will not even require a lookup. Or is that a bad assumption?
Re:Ask HN: What ist your AdBlock strategy? by uncharted9 on Friday November 01, 2024 @06:56AM (#42015691)
I switched from Adguard Home to Blocky because I noticed how much faster page loads were on Blocky. I've configured it to cache any query I resolve more than once in a 24 hour window. This makes most of my page loads really, really fast.

Adguard also has the ability to cache. But I haven't seen it to significantly speed up my page loads. The default resolution itself is much slower on Adguard + Cloudflare DNS compared to Blocky + Cloudflare DNS. So this makes Adguard double whammy.

Re:Ask HN: What ist your AdBlock strategy? by kstrauser on Friday November 01, 2024 @10:30AM (#42017254)
DNS records commonly have cache lifetimes (“TTLs”) of a few minutes. It would be an error to cache those for much longer.
Re:Ask HN: What ist your AdBlock strategy? by uncharted9 on Friday November 01, 2024 @07:01AM (#42015711)
Nothing interesting particularly, but cached + faster DNS resolution is usually perceptible in general web browsing.
Re:Ask HN: What ist your AdBlock strategy? by sigio on Thursday October 31, 2024 @07:23PM (#42012552)
If you run adguard home with long blocklists on a consumer-level router, this will cause big delays, simply because the blocklists are large and eat all available memory and lots of processing on any dns request.

I've kept de blocklists in adguard home small, and then it works fine, but if I add hundreds of thousands of blocked domains, it gets painfully slow on my Edgerouter X running OpenWRT

Re:Ask HN: What ist your AdBlock strategy? by uncharted9 on Friday November 01, 2024 @06:58AM (#42015698)
I'm using same set of Blocklists (800k-1M rulesets) in my comparison between Adguard and Blocky with same upstream resolver.

I'm running them as system service on my laptop, and using my localhost as dns proxy.

Re:Ask HN: What ist your AdBlock strategy? by tssva on Friday November 01, 2024 @07:13AM (#42015792)
The Edgerouter X had good specs for the time it was released but that was over 9 years ago at this point. I had to replace mine a few years ago because it didn't have the thruput for my 1Gbs internet connection.

Many modern consumer routers contain processors and memory which can easily handle Adguard Home. I have a GL.iNet MT-6000 with a MediaTek Filogic 830 processor which has 4 ARM A53 cores running at 2Ghz and offloads wifi and wired network packet processing from the cores. It also has 1GB of DDR4 memory. It has no problem handling Adguard home, my 1Gbs internet connection and gives me around 900Mbs of wirguard thruput.

Re:Ask HN: What ist your AdBlock strategy? by stonegray on Friday November 01, 2024 @03:43PM (#42020769)
Maybe not what you’re looking for, but I put adguard home on a VPS (although later switched to a “real” dns software prior to benchmarking) and is faster^1 than connecting directly to cloudflare from home.

[1] https://stonegray.ca/dns/#performance

Edit: for the curious, I use technetium as the server, nginx to proxy it (security stuff, prioritize traffic from my zerotier network, do DNS/DoT translation, etc) and docker/letsencrypt/watchtower/netdata for auto updating and status reporting, packaged as a single docker compose I can deploy easily.

Re:Ask HN: What ist your AdBlock strategy? by uncharted9 on Monday November 04, 2024 @09:43AM (#42041935)
This looks really interesting. I am not in North American region and hence this would be slow from my region. But nonetheless interesting project. Have you documented the entire setup journey on a blog or video?