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

    Slow DNS after 22.05

    Scheduled Pinned Locked Moved DHCP and DNS
    270 Posts 31 Posters 158.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.
    • M
      Mikymike82
      last edited by Mikymike82

      Okay all,
      After alle the comments and usefull information provided we can come / came to the conclusion that the essence lies within IPv6, DNS (unbound) and 22.05.

      With that in mind i reversed my previous temporary solution of for enabling query forwarding (essentialy forwarding all my requests to an upstream provider). Essentialy back to basic.

      With a lot of settings, changes, and some involved headache because my provider isn't that informative when it comes to having your own firewall/router. I configured IPv6 to completly function. Testing this with different websites like https://ipv6-test.com/ and https://test-ipv6.com/ i cloud confirm that my configuration was a success.

      I can fully confirm that with a non working IPv6 configuration or a provider supporting that.... that you should look at elliminating IPv6 from your current config as suggested in this forum post.

      Ok... i must say i have been only running for an hour... but all seems fine now.

      So my suggesttion would be to check if your provider supports IPv6, if so, check your settings and follow the test websites to see if your resolving ok and your config is as expected.... if yes; you are probaly in the clear and smiling, if not... then;

      Option 1: start all over again with your IPv6 config as i did severall times (TEST TEST TEST)
      Option 2: just follow the instructions for diabling IPv6 in the resolver and wait for your provider to fully support IPv6 as they should.

      Basicly: Standard PFsense configuration with a good ISP IPv6 config.

      1 Reply Last reply Reply Quote 0
      • T
        tentpiglet @johnpoz
        last edited by

        @johnpoz said in Slow DNS after 22.05:

        @pcol-it-admin said in Slow DNS after 22.05:

        said that they had "stock" pfSense DNS resolver settings

        I find this is rarely the case to be honest..

        I run pfSense in a proxmox VM on a Dell workstation. These are my DNS settings, which exhibit the issue.

        f2395ac2-f7c7-4209-9061-e9d6653d081f-image.png
        06c43fe9-3ef0-4d9b-81eb-1f1e9ba27a7f-image.png 602b20e7-e8bd-4d3a-a1cd-242b7b4f86e7-image.png 8ad27fab-3657-46de-a235-d9c74ef14e44-image.png 6c0e9a3a-bdee-4b77-a6a3-a225a276d518-image.png 7ac673b7-3b6b-43e2-ad80-7e5dd3f259f5-image.png

        As previous indicated I believe the only two "non-stock" options are the ones related to dhcp.

        My problem is 100% reproducible. If I use the pfSense resolver after a random period of time I still start to get NXDOMAIN errors in Chrome for common websites. Hitting refresh/reload a couple of times will clear the error and the page will load. It's not because I have fat fingers and am typing facebook.c0m rather than facebook.com.

        This is less of an issue for me as I simply spun up a pi-hole lxc on my proxmox server and redirected all my dns inquires to the pi-hole (which has no issues w/ resolution), but obviously not everyone has this option.

        GertjanG M 2 Replies Last reply Reply Quote 0
        • GertjanG
          Gertjan @tentpiglet
          last edited by

          @tentpiglet
          Do some more testing with this option removed :

          d279a4b3-d48d-4d9f-ab63-657f2f942403-image.png

          as it is perfectly normal to see NXDOMAIN popping up ones in a while : unbound is restarting because of DHCP leases activity.
          Add some DHCP MAC static leases for devices that you always want to have the same IP, like printers, servers, NAS etc.

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

          M 1 Reply Last reply Reply Quote 0
          • M
            Mikymike82 @Gertjan
            last edited by

            @gertjan
            As my tests and conclusions, with al your and others help made IPv6 the conclusive problem of this build when you have not correctly configured IPv6.

            Ruining your setup with other settings may make reverting back a lot less harder for some.

            1 Reply Last reply Reply Quote 0
            • M
              Mikymike82 @tentpiglet
              last edited by Mikymike82

              @tentpiglet
              Did you read my post?
              Can you verify that your IPv6 setup is correct?
              You can check on advance by forwarding al you dns requests in the resolver to your providers dns servers.

              When you have a working IPv6 connection you probably can revert to basic configuration.

              If not…. Then just use the no-ip6 option in the resolver

              T 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan
                last edited by

                @lohphat said in Slow DNS after 22.05:

                The fact that there's been a significant and open unbound bug since April
                .....
                ...upon pfSense releases that there's an inclusion of known open issues

                This one : SERVFAIL problems with unbound 1.15.0 running on OpenBSD 7.1 == https://github.com/NLnetLabs/unbound/issues/670

                I can only say : it looks like what's descibed there.
                For me : Itr's an OpenBSD thing. If it was an 'any' BSD bug, then why specify OpenBSD ?
                The bug was also closed back in Avril 2022.
                Also : I'm using the IPv6, and do not have any issues what so ever.

                What should Netfgate have to do : list every closed bug from an external package in the past as "maybe not solved yet" ? That would be thousands of entries.

                I saw you posted you posted to the bug report @unbound.
                You should do what has been asked many times over there : you should add complete (very detailed) detailed unbound logs, so the author can see what's up and confirm what happened.
                Right know, they (the author) will say : use the unbound version with the merged solution
                included, and that's not possible right now.

                All this IMHO of course.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                lohphatL 1 Reply Last reply Reply Quote 0
                • P
                  pajinha
                  last edited by pajinha

                  @mihaifpopa said in Slow DNS after 22.05:

                  Anyone else experiencing this?

                  This has been an amazing post... I got my issues fixed with the contributions of everyone, and in that process I got to learn how to debug dns unbound issues and get IPv6 working in my lab.

                  @Gertjan contributions have been great - made me want to start looking at Server Monitoring with Munin.

                  1 Reply Last reply Reply Quote 0
                  • T
                    tentpiglet @Mikymike82
                    last edited by

                    @mikymike82

                    Can you verify that your IPv6 setup is correct?

                    ip6 is functioning. My wan has a 2001: address and clients on my network have a 2601: address. I can ping 2001:4860:4860::8888 from any of my network clients.

                    M 1 Reply Last reply Reply Quote 1
                    • M
                      Mikymike82 @tentpiglet
                      last edited by

                      @tentpiglet did you try the tests on the suggested websites as well…. This will sometimes give you a bit more insight.

                      1 Reply Last reply Reply Quote 0
                      • lohphatL
                        lohphat @Gertjan
                        last edited by

                        @gertjan The bug may have been closed in April but the issue still remains open in the 22.05 pfSense distribution since it's the unpatched unbound.

                        The issue should remain in an "Known Issues" list until the fix makes it into the next pfSense release. If that's not going to happen, then the process which NetGate uses to determine release viability needs to review upstream issues before release if it's not going to compile them for customers to review.

                        If the business model relies on components from upstream providers then doing some legwork to determine you're not inheriting problems sight-unseen seems reasonable. e.g. if there are included 3rd party modules not maintained by the OpenBSD distro (e.g. dhcpd, dpinger, igmpproxy, ntpd, radvd, sshd, syslogd, unbound, watchdogd) which are installed by default, then the "What's changed" notes of each should be reviewed by the release team and see what was changed, and if the versions included now have subsequent issues discovered before you pass the new versions on to us.

                        In all the software companies I've worked in, the release team took care of watching dependencies for any OSS (or commercial) component we then redistributed in our products.

                        SG-3100 24.11-RELEASE (arm) | Avahi (2.2_6) | ntopng (5.6.0_1) | openvpn-client-export (1.9.5) | pfBlockerNG-devel (3.2.1_20) | System_Patches (2.2.20_5)

                        GertjanG 1 Reply Last reply Reply Quote 0
                        • GertjanG
                          Gertjan @lohphat
                          last edited by

                          @lohphat
                          I fully agree with you.
                          What happened if I was testing these new versions ?
                          For me, on my Netgate SG 4100, unbound works fine, and I'm using IPv6. half of all DNS requests go out over IPv6.
                          For me, Unboud runs solid for day, and get restarted because my pfBlockerng-devel reloads it after a week ( I'm not updating non updated feeds every hour or so).

                          I would have said to the Netgate team : for me, these new versions, like unbound, are ok.

                          The thing is : there are people using settings, or hardware, that differs from what Netgate used to test.
                          There is situation where the error pops up.
                          As we all us the exact same same unbound binary code, and the same pfSense code, only our settings can differ. And our uplink ....

                          No "help me" PM's please. Use the forum, the community will thank you.
                          Edit : and where are the logs ??

                          1 Reply Last reply Reply Quote 0
                          • M
                            mvikman
                            last edited by

                            I don't have any DNS issues, but just out of curiosity regarding unbound settings...

                            I assume that the config file is /var/unbound/unbound.conf, because the the custom options get added to that file if set via resolver settings.

                            Here is my IPv6 system options, also no custom options set under DNS Resolver

                            d774eacc-3f71-440c-b2de-e79a1f86ffc8-image.png

                            When looking at the beginning of the unbound.conf file, the "do-ip6" is set to "no"...

                            ##########################
                            # Unbound Configuration
                            ##########################
                            
                            ##
                            # Server configuration
                            ##
                            server:
                            
                            chroot: /var/unbound
                            username: "unbound"
                            directory: "/var/unbound"
                            pidfile: "/var/run/unbound.pid"
                            use-syslog: yes
                            port: 53
                            verbosity: 1
                            hide-identity: yes
                            hide-version: yes
                            harden-glue: yes
                            do-ip4: yes
                            do-ip6: no
                            do-udp: yes
                            do-tcp: yes
                            do-daemonize: yes
                            

                            Does pfSense actually also disable unbound IPv6 when IPv6 is disabled from System/Advanced settings?
                            Of course I could have tested it myself, but I didn't want to mess with my working system... 😁

                            This with pfSense Plus 22.05

                            pfSense Plus 24.11-RELEASE (amd64)
                            Dell Optiplex 7040 SFF
                            Core i5-6500, 8GB RAM, 2x 240GB SSD (ZFS Mirror)
                            HPE 561T (X540-AT2), 2-port 10Gb RJ45
                            HPE 562SFP+ (X710-DA2), 2-port 10Gb SFP+

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

                              @mvikman do you have an actual IPv6 address?

                              here is from my config

                              ##
                              # Server configuration
                              ##
                              server:
                              
                              chroot: /var/unbound
                              username: "unbound"
                              directory: "/var/unbound"
                              pidfile: "/var/run/unbound.pid"
                              use-syslog: yes
                              port: 53
                              verbosity: 1
                              hide-identity: no
                              hide-version: no
                              harden-glue: yes
                              do-ip4: yes
                              do-ip6: yes
                              do-udp: yes
                              do-tcp: yes
                              do-daemonize: yes
                              

                              See lower in the config is where your options get set and can override what is set there.

                              # Unbound custom options
                              server:
                              do-ip6: no
                              private-domain: "plex.direct"
                              local-zone: "use-application-dns.net"  always_nxdomain
                              

                              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

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                mvikman @johnpoz
                                last edited by

                                @johnpoz

                                I have IPv6 disabled and I don't have IPv6 address, my ISP doesn't support it.

                                The current unbound config file doesn't have that custom options section, because I haven't set any custom options.
                                But I tested adding the custom options and it does add them in the config file.

                                Just curious about that unbound's "do-ip6" is set to "no" without using custom options to set it.

                                pfSense Plus 24.11-RELEASE (amd64)
                                Dell Optiplex 7040 SFF
                                Core i5-6500, 8GB RAM, 2x 240GB SSD (ZFS Mirror)
                                HPE 561T (X540-AT2), 2-port 10Gb RJ45
                                HPE 562SFP+ (X710-DA2), 2-port 10Gb SFP+

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

                                  @mvikman said in Slow DNS after 22.05:

                                  "do-ip6" is set to "no" without using custom options to set it.

                                  pretty pointless to do IPv6 if you don't have IPv6..

                                  i unchecked that box and yes if you save a config on unbound then it sets that to no..

                                  [22.05-RELEASE][admin@sg4860.local.lan]/root: cat /var/unbound/unbound.conf
                                  ##########################
                                  # Unbound Configuration
                                  ##########################
                                  
                                  ##
                                  # Server configuration
                                  ##
                                  server:
                                  
                                  chroot: /var/unbound
                                  username: "unbound"
                                  directory: "/var/unbound"
                                  pidfile: "/var/run/unbound.pid"
                                  use-syslog: yes
                                  port: 53
                                  verbosity: 1
                                  hide-identity: no
                                  hide-version: no
                                  harden-glue: yes
                                  do-ip4: yes
                                  do-ip6: no
                                  do-udp: yes
                                  do-tcp: yes
                                  

                                  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

                                  M 1 Reply Last reply Reply Quote 0
                                  • M
                                    mvikman @johnpoz
                                    last edited by

                                    @johnpoz said in Slow DNS after 22.05:

                                    @mvikman said in Slow DNS after 22.05:

                                    "do-ip6" is set to "no" without using custom options to set it.

                                    pretty pointless to do IPv6 if you don't have IPv6..

                                    i unchecked that box and yes if you save a config on unbound then it sets that to no..

                                    Yeah, that makes sense.

                                    While reading this thread, I just somehow got stuck with the thought that to "fully disable" IPv6, that in addition to unchecking "Allow IPv6" in advanced settings, you would need to set the "do-ip6: no" to custom options. XD

                                    pfSense Plus 24.11-RELEASE (amd64)
                                    Dell Optiplex 7040 SFF
                                    Core i5-6500, 8GB RAM, 2x 240GB SSD (ZFS Mirror)
                                    HPE 561T (X540-AT2), 2-port 10Gb RJ45
                                    HPE 562SFP+ (X710-DA2), 2-port 10Gb SFP+

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

                                      @mvikman You don't have to disable IPv6 - you just need to keep unbound from using it as a transport.

                                      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

                                      V 1 Reply Last reply Reply Quote 0
                                      • V
                                        vbredjp @johnpoz
                                        last edited by

                                        having problems on 22.05 when DNS sometimes just stop resolving, but only certain domains (sometimes obscure domains) so it is hard to notice, as other domains are resolved ok.
                                        do-ip6:no did not solve the problem.

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

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • V
                                            vbredjp
                                            last edited by vbredjp

                                            This problem is getting unbearable, considering rolling back to previous version, what is the schedule for new pfsense+ release? as it may have newer unbound version with problem fixed..
                                            I think I am being impacted by this bug
                                            https://github.com/NLnetLabs/unbound/issues/670

                                            but setting do-ip6: no does not solve problem for me.

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