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

    NXDOMAIN for specific website in unbound forwarder, but not public DNS

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 4 Posters 501 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.
    • G
      Gooberpatrol66
      last edited by

      I'm using Quad9 + unbound forwarding mode

      $ nslookup myaccounts.capitalone.com 9.9.9.9
      Server:         9.9.9.9
      Address:        9.9.9.9#53
      
      Non-authoritative answer:
      myaccounts.capitalone.com       canonical name = easeweb-prod-glb.aws-stsd.capitalonegslbex.com.
      easeweb-prod-glb.aws-stsd.capitalonegslbex.com  canonical name = d3f7gxcse81xel.cloudfront.net.
      Name:   d3f7gxcse81xel.cloudfront.net
      Address: 18.245.124.37
      Name:   d3f7gxcse81xel.cloudfront.net
      Address: 18.245.124.71
      Name:   d3f7gxcse81xel.cloudfront.net
      Address: 18.245.124.18
      Name:   d3f7gxcse81xel.cloudfront.net
      Address: 18.245.124.100
      
      $ nslookup myaccounts.capitalone.com 10.0.0.1
      Server:         10.0.0.1
      Address:        10.0.0.1#53
      
      ** server can't find myaccounts.capitalone.com: NXDOMAIN
      

      I have turned off pfblocker and restarted unbound, which didn't fix it. Pinging the domain with diagnostics > ping didn't work. Telnet didn't work.

      servers
      9.9.9.9
      149.112.112.112
      2620:fe::fe
      2620:fe::9
      

      How to troubleshoot this?

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

        @Gooberpatrol66 if you are in forwarding mode - did you disable dnssec? But that should return servfail not nx.

        ping and telnet have nothing to do with resolving the fqdn to an IP via dns..

        What are you trying to ask pfsense from? What does pfsense actually show when you do a dns lookup in the gui under diagnostics?

        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

        G 1 Reply Last reply Reply Quote 0
        • G
          Gooberpatrol66 @johnpoz
          last edited by Gooberpatrol66

          @johnpoz DNSSEC is enabled
          I'm running nslookup from a computer in my network

          Screenshot_20240416_175515.png

          full router reboot didn't fix

          S GertjanG 2 Replies Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @Gooberpatrol66
            last edited by

            @Gooberpatrol66 disable DNSSEC, see the blue note at https://quad9dns.github.io/documentation/Setup_Guides/Open-Source_Routers/pfSense_%28Encrypted%29/

            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!

            johnpozJ G 2 Replies Last reply Reply Quote 1
            • GertjanG
              Gertjan @Gooberpatrol66
              last edited by

              @Gooberpatrol66 said in NXDOMAIN for specific website in unbound forwarder, but not public DNS:

              full router reboot didn't fix

              What router ? pfSense ?

              I did the same test :

              956fb2ab-3242-4afa-9f3b-b5a52fb9f39c-image.png

              and like your : nothing to fix, as it showed the correct answer.

              Your issue is probably something like this :
              The device you use (first post) can access 9.9.9.9 direcly, and you receive an answer.
              But when you use 10.0.0.1, and I presume 10.0.0.1 is your pfSense LAN IP, you get a NXDOMAIN.

              Because the message is NXDOMAIN, I presume that unbound actually received the request, and handled it.
              You can see what unbound does with the request : if it received it, if it forwarded it, what it did with the answer etc. by :

              Go here Services > DNS Resolver > Advanced Settings
              and select level 3 :

              8886b15b-5f62-44ea-b737-be4a53ec7f0f-image.png

              from now on, Status > System Logs > System > DNS Resolver will show massive log details.

              Stop unbound on the Dashboard.
              Count to 3.
              Start unbound.
              Now do a test on your LAN device.
              What did you saw in the logs ?

              Btw : remove pfBlockerng from your system, just to be save.

              You have this :

              2c5dd496-5144-4af8-a8f9-ab48f9e52afb-image.png

              right ?

              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
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @SteveITS
                last edited by

                ^exactly - in no scenario does it make any sense to set unbound to try and do dnssec if your forwarding - its going to be problematic.

                Where you forward is either doing dnssec or its not, that setting only makes sense if your actually resolving..

                But I would think the failure mode would return a servfail vs a nx..

                Also a setting that can cause problems with forwarding is if you have qname min set especially strict.. But again if your forwarding that setting is pointless.. Its a resolver setting.. So they should not be enabled if your forwarding.

                qname.jpg

                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
                • G
                  Gooberpatrol66 @SteveITS
                  last edited by

                  @SteveITS Disabling DNSSEC seemed to solve it, thank you

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