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

    DNS resolver much slower in 2.5.0

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 2 Posters 688 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.
    • P
      pfnow
      last edited by

      I have noticed that since upgrading to 2.5.0 DNS resolution is slower on all LAN clients compared to 2.4.5. It is very noticeable when browsing, it takes a second or two when opening a new site that was not cached.

      I tried to use resolver with and without DNS sec as well as using it as forwarder with and without SSL, but it still lag. I might have to revert back to 2.4.5 if I don't find a solution as this is impacting user experience.

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

        There have been many posts about unbound restarting.. Is yours doing that - if unbound is restarting a lot - that can present itself as slow dns.

        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 24.11 | Lab VMs 2.8, 24.11

        P 1 Reply Last reply Reply Quote 0
        • P
          pfnow @johnpoz
          last edited by

          @johnpoz yes, I checked that and it doesn't look like Unbound is restarting. I just did a fresh install and restore and it still exhibits this behavior. DNS resolution works, but browsing feels so sluggish now.

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

            Not seeing this at all... And one of my fav protocols is dns - I pay specific attention to how its working..

            Do a simple test.. Restart unbound - that will clear the cache.. Now lets see how long something specific takes to resolve. Look in your status resolver.. You seeing timeouts, look at your infrastructure cache down at the bottom

            Look at your recursion time numbers.

            [21.02-RELEASE][admin@sg4860.local.lan]/root: unbound-control -c /var/unbound/unbound.conf stats_noreset | grep recursion
            thread0.recursion.time.avg=0.547539
            thread0.recursion.time.median=0.0664338
            thread1.recursion.time.avg=0.090990
            thread1.recursion.time.median=0.0453827
            thread2.recursion.time.avg=0.348912
            thread2.recursion.time.median=0.0495323
            thread3.recursion.time.avg=0.394142
            thread3.recursion.time.median=0.0511331
            total.recursion.time.avg=0.298547
            total.recursion.time.median=0.0531204
            

            This is the avg or median time to do a full recursive lookup.. Ie not cached response time..

            If you want grab the grc dns benchmark... Just put in your pfsense IP that unbound is on.. And run a benchmark.. What do the numbers look like

            example..
            test.png

            If you think 2.4.5p1 was faster?? Then do a test with 2.4.5p1 and compare... I think I have some numbers from 2.4.5p1 posted around here somewhere... Let me see if I can find that thread..

            edit:
            I know I had posted something like this not that long ago - but can not seem to find it currently

            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 24.11 | Lab VMs 2.8, 24.11

            P 1 Reply Last reply Reply Quote 1
            • P
              pfnow @johnpoz
              last edited by

              @johnpoz said in DNS resolver much slower in 2.5.0:

              unbound-control -c /var/unbound/unbound.conf stats_noreset | grep recursion

              Thanks for the detailed reply. The issue seems to be resolved now. I ended up with a clean install and reset the pfBlocker settings as I realized I had some misconfigurations (present even in 2.4.5). So I'm not totally sure what the cause or the fix was.

              Although my results are not as good as yours, browsing feels snappy again:

              unbound.png

              DNS.png

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

                Well numbers of time of recursion could vary for sure - depending on your location and what your looking up.. I don't know exactly what say for example that grc dns tool is using for its testing.. Its clearly a list of xyz.. Which for would could be different times to resolve depending on where your located and how well your isp peers, etc. to where you have to go look those up from the authoritative..

                But as long as your not seeing some crazy times for avg and median your all good..

                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 24.11 | Lab VMs 2.8, 24.11

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