• auzy1@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      12 hours ago

      DNS caching isn’t super difficult code probably (we do variants of it in lua). you basically just need to put a expiry + timestamp in the table when it expires based on the inbound TTL, If fetching and its expired delete it / don’t send it, and sweep through every so often and purge old items. Standard DNS isn’t a very complex protocol

      • ryannathans@aussie.zone
        link
        fedilink
        English
        arrow-up
        3
        ·
        11 hours ago

        I agree entirely but you just know there’s some stupid apps only working because there’s no caching here