Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Serve-expired setting

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 2 Posters 2.2k Views
    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.
    • M Offline
      mloiterman
      last edited by

      Just noticed what appears to be a new feature in 2.4.1 DNS Resolver Advanced settings - "serve-expired".

      Explanation is:
      "When enabled, allows unbound to serve one query even with a TTL of 0, if TTL is 0 then new record will be requested in the background when the cache is served to ensure cache is updated without latency on service of the DNS request."

      I'm not sure I understand what this is doing and there isn't any other documentation available.  Can anyone shed any additional light on what this does?

      It's unchecked for me at the moment, but I just turned it on to see impact.  For a home user, is the preferred setting checked or unchecked?

      1 Reply Last reply Reply Quote 0
      • johnpozJ Online
        johnpoz LAYER 8 Global Moderator
        last edited by

        Not really anything new, just that they added a checkbox to enable it in the gui vs having to do it in the custom options box.  Pretty sure its be around since 1.6 of unbound.

        This allows unbound to serve up a record that has expired - ie ttl has reached 0…  If the item is still in cache clearly and has not been removed.  It will serve up that record to you, and in the background try and resolve it.  This could help with dns timeouts if you are slow to resolve, etc.

        I would say you should only need to turn this on if your having problems with resolving stuff..  Unless you were having some issues with resolving, I don't see how you would notice if it was on or off to be honest.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

        1 Reply Last reply Reply Quote 0
        • M Offline
          mloiterman
          last edited by

          Thanks for the explanation!

          1 Reply Last reply Reply Quote 0
          • johnpozJ Online
            johnpoz LAYER 8 Global Moderator
            last edited by

            Do you have prefetch enabled in the advanced section?  If so your popular items should never really expire to ttl 0, since they will be updated before they expire when a client asks for that record, etc.  I do not recall if that is on out of the box or not.

            This option is prob better for you if your slow to resolve..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 25.07.1 | Lab VMs 2.8, 25.07.1

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.