[HN Gopher] Turning my ESP32 into a DNS sinkhole to fight doomsc...
___________________________________________________________________
Turning my ESP32 into a DNS sinkhole to fight doomscrolling
Author : venusgirdle
Score : 41 points
Date : 2025-02-28 10:39 UTC (2 days ago)
(HTM) web link (amanvir.com)
(TXT) w3m dump (amanvir.com)
| adamrmcd wrote:
| Neat idea, but my takeaway is I had no idea that DNS also runs on
| UDP/53.. I always thought it was TCP only! #TIL
|
| The author cites it as performance reasons, but at this scale,
| even the uplink to cloudflare, would be negligible, no?
| loloquwowndueo wrote:
| That's odd because DNS is the quintessential UDP-based
| protocol. "From the time of its origin in 1983 the DNS has used
| the User Datagram Protocol (UDP) for transport over IP.". DNS
| over TCP was only introduced as a later addition (admittedly,
| in 1989).
| teruakohatu wrote:
| With 'normal' DNS, UDP with the default and TCP is used if the
| packet size becomes too large. There are other TCP-only
| variants such as DoT (DNS over TLS) and DoH (DNS over HTTPS).
|
| I don't think the performance would matter much with some basic
| caching (or even just OS-level caching), but there is limited
| memory in an ESP so maybe that is it. I have never noticed
| issues with DoT and DoH which are theoretically much heavier
| protocols.
| huang_chung wrote:
| > I always thought it was TCP only!
|
| So did the NIH firewall administrator:
|
| https://news.ycombinator.com/item?id=43229201
| angrigo wrote:
| How's gonna work if the request is already cached or when using
| DNS over https?
| echoangle wrote:
| It won't. Especially when you use private relay on an iPhone,
| it won't use local DNS (except if the requested domain isn't
| found, it can probably still route local domain names?).
| torlok wrote:
| I was never addicted to social media, but I used to be terribly
| addicted to YouTube. I tried various blockers, and none of that
| worked. In the end I told myself I'm going to quit for 1 month
| and see. It's a long enough period, where you can't just distract
| yourself with other things, but it's not long enough to feel like
| you're losing something. Not to preach, but it worked for me, and
| I've applied it successfuly in other places like eating habits.
| You commit to 1 thing at a time, and see if it makes your life
| better.
___________________________________________________________________
(page generated 2025-03-02 23:00 UTC)