3 ms·
what is a bind cache? always assume most of us have terrible knowledge of networking
by swyx 3y ago
what is a bind cache? always assume most of us have terrible knowledge of networking
- marginalia_nu 3y agoI mean running bind[1] locally configured to act as a DNS cache. The operating system does some DNS caching as well, but it's not really tuned for crawling, and as a result it's very easy to end up spamming innocent DNS servers with an insane amount of lookup requests. [1] https://www.isc.org/bind/ https://www.isc.org/bind/
- swyx 3y agook but in my understanding isnt DNS also cached on the nearest wifi/ISP routers? the whole DNS system is just layer after layer of caches right? i.e. does caching on local machine actually matter? (real question, i dont know)
- marginalia_nu 3y agoYeah sure, but most of those caching layers (including possibly on the ISP level) aren't really configured for the DNS flood a crawling operation may result in. If you're going to do way more DNS lookups than are expected from your connection, it's a good custom to provide your own caching layer that's scaled accordingly. Not doing so probably won't break anything, but it risks degrading the DNS performance of other people using the same resolvers.
- swyx 3y agogotcha. thanks for indulging my curiosity! hopefully others will learn good dns hygiene from this as well.