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

      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!

      bheplerB 1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer @DigiTalk
        last edited by

        @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

          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.

          bheplerB 1 Reply Last reply Reply Quote 0
          • bheplerB Offline
            bhepler Module Developer @DigiTalk
            last edited by

            @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
            • First post
              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