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

    Troubleshooting unbound issue - not getting result for query

    Scheduled Pinned Locked Moved DHCP and DNS
    14 Posts 4 Posters 3.1k 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
      micahbf
      last edited by

      Also, I noticed that SERVFAIL on the response, but I don't see anything in the unbound logs.

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

        Hope you all are enjoying this livestream :)

        Seems to be some DNSSEC issue, as when I do dig +cdflag it works.

        I tried unchecking "Harden DNSSEC Data" but that has not resolved the issue.

        johnpozJ 1 Reply Last reply Reply Quote 0
        • bmeeksB
          bmeeks
          last edited by bmeeks

          So you never say what type of client is failing to resolve the hostname, and more importantly, if that client using only your pfSense firewall IP for DNS? Do you by chance have some other DNS server being provided to that client?

          The fact the host resolves correctly from the firewall means pfSense is working fine. So if the client is asking pfSense, it should also be getting the same answer as you are receiving on the firewall directly.

          Do you by chance have the pfBlockerNG-devel package installed with the DNSBL feature enabled? Do you have any other packages installed that might be interfering with the lookup from that client?

          To be honest, your post is confusing. You say the hostname does not resolve on a client, but then everything else you are doing is isolated to just the pfSense firewall itself and you never give us any info about that client. What troubleshooting have you done now on the client since your efforts posted above prove the pfSense side of the DNS equation is working?

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

            Well, here's DNS not working from pfsense:

            Screen Shot 2020-11-23 at 6.20.34 PM.png

            I do not have pfBlockerNG or any other DNS blockers installed.

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

              @micahbf said in Troubleshooting unbound issue - not getting result for query:

              I tried unchecking "Harden DNSSEC Data" but that has not resolved the issue.

              Because that is meaningless when you forward.. So no that has nothing to do with it.

              SERVFAIL can mean a lot of things. Its a general failure that something went wrong.. And can not give you an answer..

              Where exactly are you setting +cdflag? On your client when you query pfsense? If you are forwarding you shouldn't be asking for dnssec at all.. When you forward, were you forward is doing dnssec or its not. You asking for it does nothing of worth..

              youtu.be is not dnssec signed btw..

              But I see that the google ns for that domain, have some issues

              "ns4.google.com serial (343717709) differs from ns1.google.com serial (343814713)"

              Also you say your not using any blocklist - but nextdns does support blocklists.

              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 0
              • M
                micahbf
                last edited by

                Setting +cdflag running dig from pfsense itself works:

                Screen Shot 2020-11-23 at 6.43.41 PM.png

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

                  I would suggest you turn off dnssec in unbound, if your going to forward.. that is what the +cdflag does. nextdns does dnssec, so there is no reason for unbound to be doing anything with dnssec if your going to forward.

                  It only makes sense to do if your resolving.

                  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 1
                  • M
                    micahbf @johnpoz
                    last edited by

                    @johnpoz said in Troubleshooting unbound issue - not getting result for query:

                    I would suggest you turn off dnssec in unbound, if your going to forward.. that is what the +cdflag does. nextdns does dnssec, so there is no reason for unbound to be doing anything with dnssec if your going to forward.

                    It only makes sense to do if your resolving.

                    Thank you, I will give that a shot! And will report back here with the requisite unbound config.

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

                      So for example - here is them returning servfail for something that fails dnssec..

                      dig @45.90.28.85 www.dnssec-failed.org
                      
                      ; <<>> DiG 9.16.8 <<>> @45.90.28.85 www.dnssec-failed.org
                      ; (1 server found)
                      ;; global options: +cmd
                      ;; Got answer:
                      ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 47731
                      ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
                      
                      ;; QUESTION SECTION:
                      ;www.dnssec-failed.org.         IN      A
                      
                      ;; Query time: 360 msec
                      ;; SERVER: 45.90.28.85#53(45.90.28.85)
                      ;; WHEN: Mon Nov 23 18:49:07 Central Standard Time 2020
                      ;; MSG SIZE  rcvd: 39
                      

                      No reason to ask for dnssec

                      https://help.nextdns.io/en/articles/3941225-does-nextdns-implement-dnssec
                      Yes. NextDNS is a validating DNSSEC resolver. This means that for domains implemeting DNSSEC, NextDNS will cryptographically ensure that the response provided matches the intended response of the domain operator.

                      Here I told them with the +cdflag to ignore

                      C:\>dig @45.90.28.85 www.dnssec-failed.org +cdflag
                      
                      ; <<>> DiG 9.16.8 <<>> @45.90.28.85 www.dnssec-failed.org +cdflag
                      ; (1 server found)
                      ;; global options: +cmd
                      ;; Got answer:
                      ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13575
                      ;; flags: qr rd ra cd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
                      
                      ;; OPT PSEUDOSECTION:
                      ; EDNS: version: 0, flags:; udp: 1220
                      ;; QUESTION SECTION:
                      ;www.dnssec-failed.org.         IN      A
                      
                      ;; ANSWER SECTION:
                      www.dnssec-failed.org.  7060    IN      A       69.252.193.191
                      www.dnssec-failed.org.  7060    IN      A       68.87.109.242
                      
                      ;; Query time: 15 msec
                      ;; SERVER: 45.90.28.85#53(45.90.28.85)
                      ;; WHEN: Mon Nov 23 18:51:27 Central Standard Time 2020
                      ;; MSG SIZE  rcvd: 82
                      

                      If your going to forward to a dnssec resolver - asking for dnssec could lead to some issues. Forwarding to something that doesn't do dnssec and asking for it - doesn't really do anything.

                      The only time dnssec on unbound makes any sense is when your resolving - which you are not.

                      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
                      • M
                        micahbf
                        last edited by

                        Added this to unbound's custom config:

                        server:
                            val-permissive-mode: yes
                        

                        And it's working.

                        Thank you @johnpoz for the guidance!

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

                          @micahbf said in Troubleshooting unbound issue - not getting result for query:

                          server:
                          val-permissive-mode: yes

                          Just shut down DNSSEC .
                          Now your instructing unbound to do DNSSEC, and at the end it discards results.

                          See https://forum.netgate.com/topic/83829/dns-resolver-dnssec-in-permissive-mode or the unbound doc.

                          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 1
                          • M
                            micahbf @Gertjan
                            last edited by

                            Got it. Just unchecked "Enable DNSSEC support" and all is well.

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