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

    DNS resolver very slow

    Scheduled Pinned Locked Moved DHCP and DNS
    14 Posts 3 Posters 2.0k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @SpaceBass
      last edited by

      @spacebass said in DNS resolver very slow:

      um.edu is a domain I've never queried before

      not even a valid domain, even via IPv4.. Which is why you got back SOA from one of the .edu NS.

      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.7.2, 24.11

      S 1 Reply Last reply Reply Quote 0
      • S
        SpaceBass @johnpoz
        last edited by

        @johnpoz said in DNS resolver very slow:

        not even a valid domain, even via IPv4.. Which is why you got back SOA from one of the .edu NS.

        ha! Didn't even notice that, I was so focused on the query time only

        1 Reply Last reply Reply Quote 0
        • S
          SpaceBass @SteveITS
          last edited by

          @steveits said in DNS resolver very slow:

          In pfSense there is an option in System/Advanced/Networking to "Prefer IPv4 over IPv6" which is only for pfSense itself.

          thanks, thats helpful

          What else would that affect besides Unbound... updates?
          Would it affect resolution of VPN peers?

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

            @spacebass said in DNS resolver very slow:

            What else would that affect besides Unbound... updates?

            All that setting means is pfsense should use ipv4 before IPv6 if it has both.. This would be for when it talks to something, like checking if new pfsense available, when it checks to see what packages available..

            keep in mind that if the package like pfblocker makes the actual request, and not the OS (pfsense) it might try IPv6 first..

            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.7.2, 24.11

            S 1 Reply Last reply Reply Quote 0
            • S
              SpaceBass @johnpoz
              last edited by

              @johnpoz thanks! that's clear

              1 Reply Last reply Reply Quote 0
              • S
                SpaceBass
                last edited by SpaceBass

                still working on troubleshooting this ... not sure how exactly.

                I have 'Prefer to use IPv4 even if IPv6 is available' checked

                IPv6 seems to be configured correctly. I get addresses for each LAN client. I can ping6 any internal and external server with an IPv6 address.

                But nonetheless, resolves are quite slow whenever IPv6 is enabled.

                Might that just be the nature of my routes to root servers? Or could there be something else on my end to check?

                S johnpozJ 2 Replies Last reply Reply Quote 0
                • S
                  SpaceBass @SpaceBass
                  last edited by

                  bumping this one - still looking for some troubleshooting tips.
                  I've set pfSense to prefer IPv4 but AAAA queries still take between 2-8msecs.
                  Any tips for troubleshooting or resolving or tweaking?

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

                    @spacebass said in DNS resolver very slow:

                    ight that just be the nature of my routes to root servers

                    Keep in mind root servers are only talked to get the gltd servers for whatever tld the domain is your looking for .net, .com, .org, etc..

                    So you not very often talk to the actual roots - only when your looking up something that has a different tld that you have not looked up before, like .biz or .edu etc..

                    It then asks those for the authoritative ns for domain.tld - it then talks that NS directly forwhatever host.domain.tld your looking for.

                    The roots and the gtld servers are then cached for quite some time, so you wouldn't really need to ask them again when looking up host.domain.tld or otherthing.domain.tld that you already know the authoritative NSers for..

                    Its quite possible the domain or domains your having slow resolving time with - you have a bad ipv6 connection too, etc.. Unbound will normally tend to use the fastest NS for some domain when the domain has multiple NSers.. which is really a requirement - but have seen some shit domains where its the same box, just different IP, etc. etc..

                    I would look to a specific domain your having slowness with, and look to see what kind of latency you see when you query them directly for some record they are authoritative for..

                    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.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • S
                      SteveITS Galactic Empire @SpaceBass
                      last edited by

                      @spacebass See post https://forum.netgate.com/post/1104503

                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                      Upvote 👍 helpful posts!

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        SpaceBass @SteveITS
                        last edited by

                        @steveits thanks - that's interesting. I'm not forwarding to quad 9 but I'll check and see if disabling aslr makes a difference.

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