• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Lots of DNS-queries from Mirror - chaching possible?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
dnsspotify
4 Posts 2 Posters 1.3k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    DigiTalk
    last edited by Apr 7, 2019, 7:25 PM

    Hello!
    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?
    Thanks!

    B 1 Reply Last reply Apr 8, 2019, 4:03 AM Reply Quote 0
    • B Offline
      bhepler Module Developer @DigiTalk
      last edited by Apr 8, 2019, 4:03 AM

      @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.

      1 Reply Last reply Reply Quote 0
      • D Offline
        DigiTalk
        last edited by DigiTalk Apr 9, 2019, 5:30 AM Apr 9, 2019, 5:29 AM

        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.

        B 1 Reply Last reply Apr 11, 2019, 1:48 AM Reply Quote 0
        • B Offline
          bhepler Module Developer @DigiTalk
          last edited by Apr 11, 2019, 1:48 AM

          @DigiTalk - Heh. It was mostly serendipity. I had to look up DNS caching as part of my work with remotely accessing mirrors.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy