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

Major DNS Bug 23.01 with Quad9 on SSL

General pfSense Questions
27
185
149.5k
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.
  • B
    bmeeks
    last edited by Apr 7, 2023, 12:00 AM

    There is a closed bug report on the unbound Github site with this exact same TCP error here: https://github.com/NLnetLabs/unbound/issues/535. The unbound developer attributed the TCP error to the other end of the connection (meaning not the unbound side) closing the TCP socket. Maybe this is a clue ???

    1 Reply Last reply Reply Quote 0
    • S
      SteveITS Galactic Empire @Gertjan
      last edited by Apr 7, 2023, 1:26 AM

      @gertjan said in Major DNS Bug 23.01 with Quad9 on SSL:

      what about setting up the DNS (statically) so they all get their DNS from "1.1.1.1" using TLS (port 853)

      @joedan Can you run your test against 1.1.1.1 directly, not using pfSense as the DNS server?

      Quoting from @bmeeks' referenced link, "This is normal if the other server restarts for example, or maybe because it wants to manage the TCP connections that it has; possibly with timeouts for how long they can be used."

      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!

      1 Reply Last reply Reply Quote 0
      • G
        Gertjan
        last edited by Apr 7, 2023, 6:18 AM

        I've activated these again :

        login-to-view

        with :

        login-to-view

        When the log level was set to 3, I saw some

        debug: tcp error for address 2606:4700:4700::1111 port 853
        and
        debug: tcp error for address 2606:4700:4700::1001 port 853
        and
        debug: tcp error for address 1.1.1.1 port 853
        and
        debug: tcp error for address 1.0.0.1 port 853

        Also some repeating :
        ....
        outnettcp got tcp error -1
        outnettcp got tcp error -1
        outnettcp got tcp error -1
        outnettcp got tcp error -1
        ....

        Recent reading makes me think these are rather harmless.

        I'll leave it for the weekend.

        When DNSSEC was activated, I saw a lot of DS and other DNSSEC related records were requested. DNS resolving worked just fine, though.

        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 Apr 7, 2023, 3:56 PM Reply Quote 0
        • G Gertjan referenced this topic on Apr 7, 2023, 6:49 AM
        • G Gertjan referenced this topic on Apr 7, 2023, 6:49 AM
        • G Gertjan referenced this topic on Apr 7, 2023, 7:35 AM
        • G Gertjan referenced this topic on Apr 7, 2023, 7:35 AM
        • S
          stephenw10 Netgate Administrator
          last edited by Apr 7, 2023, 12:39 PM

          Mmm, it looks like log level 4 might be needed to see any additional logging associated with those errors.

          G 1 Reply Last reply Apr 7, 2023, 12:51 PM Reply Quote 0
          • G
            Gertjan @stephenw10
            last edited by Apr 7, 2023, 12:51 PM

            @stephenw10 said in Major DNS Bug 23.01 with Quad9 on SSL:

            level 4

            login-to-view

            shows 'nothing' special.
            And what you can't see doesn't exist ;)
            I'm forwarding right now to 1.1.1.1 etc using 853 - see setup above.
            I even have DNSSEC activated + "Harden DNSSEC Data" (on the Resolver Advanced Settings page) .... because, as Clause Kellerman always says : "why not !!".
            I'll leave it like this for the weekend. I'll get back on this monday morning.

            I'm banking, send some mails, received a ton of mail, all my colleges are also doing their toktok things, and no one came complaining to me (they know who to look) to tell me that I have to stop with "messing with the connection".

            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
              MoonKnight @Gertjan
              last edited by MoonKnight Apr 7, 2023, 4:08 PM Apr 7, 2023, 3:56 PM

              @gertjan
              Hi, I don't see those errors here. I activated log level 4.
              I use Cloudflare DNS servers. 1.1.1.1 and 1.0.0.1
              But I use another hostname for the TLS verification.

              login-to-view

              login-to-view

              Sorry, I take it back. It was on Log level 3.

              login-to-view

              --- 24.11 ---
              Intel(R) Xeon(R) CPU D-1518 @ 2.20GHz
              Kingston DDR4 2666MHz 16GB ECC
              2 x HyperX Fury SSD 120GB (ZFS-mirror)
              2 x Intel i210 (ports)
              4 x Intel i350 (ports)

              J 1 Reply Last reply Apr 7, 2023, 11:15 PM Reply Quote 0
              • S SteveITS referenced this topic on Apr 7, 2023, 5:16 PM
              • S SteveITS referenced this topic on Apr 7, 2023, 5:16 PM
              • S SteveITS referenced this topic on Apr 7, 2023, 7:11 PM
              • J
                Jimbohello @MoonKnight
                last edited by Jimbohello Apr 7, 2023, 11:39 PM Apr 7, 2023, 11:15 PM

                As far as i’m concern, quad9, google, whatever you use. 23.01 has a outstanding bug base on DoT using forwarding mode (dnssec uncheck) what ever config you use you will get Ā« FAILED TO RESOLVE HOST Ā» in DoT mode. For all alias that has to resolve to dynamic dns (xxxx.dyndns.org)

                J 1 Reply Last reply Apr 8, 2023, 2:05 AM Reply Quote 0
                • J Jimbohello referenced this topic on Apr 7, 2023, 11:32 PM
                • J Jimbohello referenced this topic on Apr 7, 2023, 11:35 PM
                • J Jimbohello referenced this topic on Apr 7, 2023, 11:35 PM
                • J
                  Jimbohello @Jimbohello
                  last edited by Jimbohello Apr 8, 2023, 2:17 AM Apr 8, 2023, 2:05 AM

                  here log level 3

                  from pfsense resolution imself for ALIASES with dynamic dns (xxxx.dyndns.org)
                  Apr 7 21:33:30 unbound 88702 [88702:0] info: finishing processing for vrac-nicolas.dyndns.org.jimbohello.arpa. AAAA IN
                  Apr 7 21:33:30 unbound 88702 [88702:0] info: query response was NXDOMAIN ANSWER
                  Apr 7 21:33:30 unbound 88702 [88702:0] info: reply from <.> 1.1.1.1#853
                  Apr 7 21:33:30 unbound 88702 [88702:0] info: response for vrac-nicolas.dyndns.org.jimbohello.arpa. AAAA IN
                  Apr 7 21:33:30 unbound 88702 [88702:0] info: iterator operate: query vrac-nicolas.dyndns.org.jimbohello.arpa. AAAA IN
                  Apr 7 21:33:30 unbound 88702 [88702:0] debug: iterator[module 0] operate: extstate:module_wait_reply event:module_event_reply

                  From the client side (lan)

                  Apr 7 21:38:42 unbound 88702 [88702:0] info: finishing processing for vrac-nicolas.dyndns.org. A IN
                  Apr 7 21:38:42 unbound 88702 [88702:0] info: query response was ANSWER
                  Apr 7 21:38:42 unbound 88702 [88702:0] info: reply from <.> 8.8.8.8#853
                  Apr 7 21:38:42 unbound 88702 [88702:0] info: response for vrac-nicolas.dyndns.org. A IN
                  Apr 7 21:38:42 unbound 88702 [88702:0] info: iterator operate: query vrac-nicolas.dyndns.org. A IN

                  JESUS I FOUND THE ISSUE I GUEST :
                  WHY IS PFSENSE ITSELF TRY TO RESOLVE
                  vrac-nicolas.dyndns.org.jimbohello.arpa
                  when it suppose to be vrac-nicolas.dyndns.org

                  pfsense is adding the domain part of itself ! no wonder why it can't resolve

                  G 1 Reply Last reply Apr 8, 2023, 11:39 AM Reply Quote 0
                  • G
                    Gertjan @Jimbohello
                    last edited by Gertjan Apr 8, 2023, 11:46 AM Apr 8, 2023, 11:39 AM

                    @jimbohello said in Major DNS Bug 23.01 with Quad9 on SSL:

                    vrac-nicolas.dyndns.org.jimbohello.arpa
                    when it suppose to be vrac-nicolas.dyndns.org
                    pfsense is adding the domain part of itself ! no wonder why it can't resolve

                    Your Windows PC is doing the same thing ...

                    Have a look what 'nslookup' does :

                    C:\Users\Gauche>nslookup
                    Serveur par defaut :   pfSense.mydomain.tld
                    Address:  2a01:cb19:beef:a6dc::1
                    
                    > set debug
                    > google.com
                    Serveur :   pfSense.mydomain.tld
                    Address:  2a01:cb19:beef:a6dc::1
                    
                    ------------
                    Got answer:
                        HEADER:
                            opcode = QUERY, id = 2, rcode = NXDOMAIN
                            header flags:  response, want recursion, recursion avail.
                            questions = 1,  answers = 0,  authority records = 1,  additional = 0
                    
                        QUESTIONS:
                            google.com.mydomain.tld, type = A, class = IN
                        AUTHORITY RECORDS:
                        ->  mydomain.tld
                            ttl = 446 (7 mins 26 secs)
                            primary name server = ns1.mydomain.tld
                            responsible mail addr = postmaster.mydomain.tld
                            serial  = 2023020723
                            refresh = 14400 (4 hours)
                            retry   = 3600 (1 hour)
                            expire  = 1209600 (14 days)
                            default TTL = 10800 (3 hours)
                    
                    ------------
                    ------------
                    Got answer:
                        HEADER:
                            opcode = QUERY, id = 3, rcode = NXDOMAIN
                            header flags:  response, want recursion, recursion avail.
                            questions = 1,  answers = 0,  authority records = 1,  additional = 0
                    
                        QUESTIONS:
                            google.com.mydomain.tld.net, type = AAAA, class = IN
                        AUTHORITY RECORDS:
                        ->  mydomain.tld
                            ttl = 446 (7 mins 26 secs)
                            primary name server = ns1.mydomain.tld
                            responsible mail addr = postmaster.mydomain.tld
                            serial  = 2023020723
                            refresh = 14400 (4 hours)
                            retry   = 3600 (1 hour)
                            expire  = 1209600 (14 days)
                            default TTL = 10800 (3 hours)
                    
                    ------------
                    ------------
                    Got answer:
                        HEADER:
                            opcode = QUERY, id = 4, rcode = NOERROR
                            header flags:  response, want recursion, recursion avail.
                            questions = 1,  answers = 1,  authority records = 0,  additional = 0
                    
                        QUESTIONS:
                            google.com, type = A, class = IN
                        ANSWERS:
                        ->  google.com
                            internet address = 142.250.74.238
                            ttl = 30 (30 secs)
                    
                    ------------
                    RƩponse ne faisant pas autoritƩ :
                    ------------
                    Got answer:
                        HEADER:
                            opcode = QUERY, id = 5, rcode = NOERROR
                            header flags:  response, want recursion, recursion avail.
                            questions = 1,  answers = 1,  authority records = 0,  additional = 0
                    
                        QUESTIONS:
                            google.com, type = AAAA, class = IN
                        ANSWERS:
                        ->  google.com
                            AAAA IPv6 address = 2a00:1450:4007:80c::200e
                            ttl = 30 (30 secs)
                    
                    ------------
                    Nom :    google.com
                    Addresses:  2a00:1450:4007:80c::200e
                              142.250.74.238
                    
                    >
                    

                    You saw what happened ?
                    I wanted details (fact checking) so I used 'set debug' first.

                    Then it showed that when I look up a domain, it adds the local PC domain first, mydomain.tld.

                    Because ..... we (me and you) are doing it wrong 😊

                    When you want to do a DNS lookup, you have to ask :
                    google.com.
                    The final dot is important.

                    It's not really an issue.

                    If I wanted to look up the IP of my PC, called 'gauche2' :
                    ( which is just the host name, not the FQDN !)
                    nslookup adds again mydomain.tld. and this time and asks pfSense
                    gauche2.mydomain.tld

                    and that is a 'good' question :
                    I got an IPv4 and IPv6 as nslookup asks both by default.

                    So, not really an error, and you could consider adding a final dot if the GUI accepts it (it does, I guess).

                    Btw : when unbound receives "google.com.mydomain.tld." as the request, it knows that it is authoritative for "mydomain.tld." so it isn't going to ask upstream details about "mydomain.tld." : after all "unbound handles "mydomain.tld" and the upstream resolver doesn't know anything about local domains and resources (normally).

                    I'm not going to ask 9.9.9.9 or 1.1.1.1 about FQDN info for the device in my LAN, that's not logic.

                    Btw : I have the resolvers/unound "System Domain Local Zone Type" set to "Static", not to the (default?) "Transparant".
                    When set to "Transparant", unbound will ask 9.9.9.9 to resolve "vrac-nicolas.dyndns.org.jimbohello.arpa." which ... no surprise, will give no answer or a "NXDOMAIN" as this domain is unknown or "new ?" to 9.9.9.9

                    edit : since yesterday, I'm doing the forward thing : DoT to :

                    login-to-view

                    No issues what so ever.

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

                    J 1 Reply Last reply Apr 9, 2023, 8:10 PM Reply Quote 0
                    • J
                      joedan @joedan
                      last edited by Apr 9, 2023, 3:07 AM

                      @joedan

                      Well I am 95% sure I fixed my issue. Decided to switch dns over tls back on and after a couple of hours had the dreaded dns failures. This time I removed ntopng package completely. Ntopng has been monitoring both lan and wan since Nov 22 under 22.05 and 23.01 since release candidate.

                      As soon as I removed ntopng, dns over tls through Cloudflare has been running ok for 24 hours. Browsing websites is super quick. My machine and bandwidth were never under stress however since removing ntopng it has drastically sped up overall speed to load a website and even the pfsense web interface itself. Pfblockerng is showing around 20k dns entries per hour which is normal load.

                      J 1 Reply Last reply Apr 9, 2023, 6:08 AM Reply Quote 0
                      • J
                        joedan @joedan
                        last edited by Apr 9, 2023, 6:08 AM

                        @joedan

                        Nevermind, thought I had fixed it, been over 24 hours and it happened again. Will just stay in Unbound resolver mode for now and leave it be. That seems to be stable and working at least.

                        J 1 Reply Last reply Apr 14, 2023, 2:56 AM Reply Quote 0
                        • J
                          Jimbohello @Gertjan
                          last edited by Apr 9, 2023, 8:10 PM

                          @gertjan

                          I’ve tried static ! All dyndns in my aliases does not resolves.

                          Before 22.05 was transparent and ad no issue

                          I did a work arround

                          Instead of regular network/host aliases i did Ā« url ip table aliases Ā» update frequency 1 days. Now it’s working as expected !

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Apr 9, 2023, 10:21 PM

                            To be clear you created a file with the dyndns FQDNs in it hosted locally and added that as the URL Table location?

                            J 1 Reply Last reply Apr 10, 2023, 1:58 AM Reply Quote 0
                            • J
                              Jimbohello @stephenw10
                              last edited by Jimbohello Apr 10, 2023, 2:04 AM Apr 10, 2023, 1:58 AM

                              @stephenw10

                              Exaclly

                              Aliases url ip table

                              Host on a web server

                              Http://server.com/mydnamicdns.txt

                              All my dynamic in that files

                              DoT activated

                              All good ninja style

                              1 Reply Last reply Reply Quote 1
                              • S
                                stephenw10 Netgate Administrator
                                last edited by Apr 10, 2023, 1:04 PM

                                Ok, good. I thought for a minute it was handling URL aliases incorrectly.

                                Well that seems like a clue then. Why is it resolving those entries differently. šŸ¤”

                                J 1 Reply Last reply Apr 10, 2023, 2:03 PM Reply Quote 0
                                • J
                                  Jimbohello @stephenw10
                                  last edited by Jimbohello Apr 10, 2023, 2:05 PM Apr 10, 2023, 2:03 PM

                                  @stephenw10
                                  hey that's why i'm doing debugging !
                                  i'm not pfsene engeenir !
                                  but i don't let my self goes down until i found solution.
                                  and for DoT activated with formarding to remote dns ! that's the only solution a found so far
                                  hope help :)

                                  have a nice one !

                                  i know that pfsense aliases HOST/NETWORK seem to use someting call "dns filter"
                                  maybe when resolving from "URL IP TABLE" it does it using nslookup or dig or something else !

                                  1 Reply Last reply Reply Quote 0
                                  • S SteveITS referenced this topic on Apr 10, 2023, 2:24 PM
                                  • S SteveITS referenced this topic on Apr 10, 2023, 2:24 PM
                                  • J
                                    joedan @joedan
                                    last edited by joedan Apr 14, 2023, 3:00 AM Apr 14, 2023, 2:56 AM

                                    @joedan

                                    I gave DNS over TLS another go after making two adjustments in my environment (under 23.01).

                                    I unchecked Disable hardware checksum offload
                                    I unchecked Enable the ALTQ support for hn NICs.

                                    Not sure why I had the last option ticked given I don't virtualise or use shaping, I use Intel igc / i225 on a dedicated Mini PC. Both these settings were on without issue in 22.05.

                                    I ran some load testing on my machine and funny enough this thing is now stable, it actually completed.

                                    348988 queries over 2853 seconds at an average of 120 queries a second way, way more than I normally do. It actually finished and I could WFH comfortable and browse websites whilst this was running. Prior to that dns stopped working after a couple of minutes.

                                    login-to-view

                                    I feel more confident I may have finally (fingers crossed) solved my specific config issue.

                                    G 1 Reply Last reply Apr 14, 2023, 6:58 AM Reply Quote 2
                                    • G
                                      Gertjan @joedan
                                      last edited by Gertjan Apr 14, 2023, 7:05 AM Apr 14, 2023, 6:58 AM

                                      @joedan
                                      Thanks for the reminder : I completely forgot to re install my munin unbound graphing for unbound. It's up and collecting as from now.

                                      Nice graph btw !

                                      I'm still forwarding to 1.1.1.1, actually more using 2606:4700:4700::1111 using TLS.
                                      pfBlockerng with some classic DNSBL, using python mode of course.

                                      All seems fine to me.
                                      The munin charts will give me some visual insights, and is far better as the usual "DNS doesn't work".
                                      Now I think about it : the built in Status> Monitoring should have some basic DNS activity monitoring.
                                      And, because its friday : why not a flag on the pfSense dashboard : "You've broken DNS !" ? 😊

                                      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
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Apr 14, 2023, 1:31 PM

                                        Hmm, that's interesting.

                                        The ALTQ for hn NICs setting does nothing if you don't have hn NICs.

                                        Re-enabling hardware checksum offload would do something. Only after a reboot though, I assume you did that?
                                        It's hard to see how that wouldn't affect a lot more than just DNS over TLS though.
                                        It would likely also be NIC specific too. Is it possible this only affects igc? That seems unlikely, but possible.

                                        J 1 Reply Last reply Apr 14, 2023, 7:58 PM Reply Quote 0
                                        • J
                                          joedan @stephenw10
                                          last edited by joedan Apr 14, 2023, 8:00 PM Apr 14, 2023, 7:58 PM

                                          @stephenw10

                                          Yes rebooted immediately after the change.

                                          I am the only one with access to pfsense and do so keeping a detailed change log, snapshot and config backup for everything I modify. My last post talks about removing ntopng which may just have taken some load off however that still had issues where dns over tls did eventually stop working, always as the first symptom.

                                          During my load testing post before that I did manage to break standard dns forwarding once but it was a lot harder to do after several attempts. Didn’t think much of it because of the huge dns load which seemed excessive anyway. Going back to standard resolving worked even better. When I did load it up with dns requests it wouldn’t break and was rock solid but things did on occasion slow down. Again due to the ridiculous amount of dns requests it was generating that seemed acceptable. I only have a small pipe (80mbit) to the internet and never had any other issues apart from dns over tls resolution on 23.01. Some other testing which I didn’t post about was to change from Cloudflare to Quad9 to Google for dns over tls but that made no difference. Dns over tls would eventually stop with any upstream provider.

                                          My machine, ram and ssd are completely oversized running bare metal (specs in my post above) and never broke a sweat. I am just glad it’s fixed for me and was thrilled to see dns over tls back on.

                                          I used the same input file for the dns load tester which broke it last time, it was 25MB. When I observed the test finished without issues I reran twice which which just resulted in a lot of cached hits. I then got all of the parts from GitHub and had a 250MB monster. Even this couldn’t break it. Dns over tls has been rock solid since.

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