you are viewing a single comment's thread
view the rest of the comments
[–] [S] 3 points 1 day ago* (1 child)

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

  • source
  • parent
  • hideshow 1 child comment