0

Spoofing client TTL using CLI router setup

Wondering if it's possible to spoof the client and cache TTL for cached entries to make it longer. I see you can make them shorter, but don't see the ability to make it longer. I'm looking to reduce queries.

1 reply

null
    • R_P_M
    • 16 hrs ago
    • Reported - view

    Taken from here - https://github.com/nextdns/nextdns/wiki/Configuration

    -max-ttl duration
        If set to greater than 0, defines the maximum TTL value that will be
        handed out to clients. The specified maximum TTL will be given to
        clients instead of the true TTL value if it is lower. The true TTL
        value is however kept in the cache to evaluate cache entries
        freshness. This is best used in conjunction with the cache to force
        clients not to rely on their own cache in order to pick up
        profile changes faster.
    

    It's a little confusing but it will use this set value to give to clients if the actual TTL is lower. This should result in lowering lookups if clients behave in the proper manner. The maximum time that can be set for this option is 5 minutes.

Content aside

  • 16 hrs agoLast active
  • 1Replies
  • 13Views
  • 2 Following