Lots of DNS-queries from Mirror - chaching possible?
Since i’m using the Spotify-Module, I see over 1.000 DNS-queries per 10 minutes to api.spotify.com from my mirror in pi-hole.
Is there a way to turn on dns-caching in raspbian, so that the module doesn’t have to ask my DNS server every second?
@DigiTalk - By default, Rasbian and other Debian flavors do not cache DNS information.
A quick Google search points me towards NSCD, which you can install with
sudo apt-get install nscd. I would recommend having a look at this blog post which contains some useful information on configuring it.
Wonderful, this worked like a charm!
Thank you so much!
I tried searching google, too.
But the only info I found was on how to set up your own DNS server - which I alread had with pi-hole.
You seem to have used a significatly better choice of search-words.
@DigiTalk - Heh. It was mostly serendipity. I had to look up DNS caching as part of my work with remotely accessing mirrors.