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

    Disabling DNS Rebinding Checks does alter domain overrides

    Scheduled Pinned Locked Moved DHCP and DNS
    17 Posts 2 Posters 1.2k 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.
    • Bob.DigB
      Bob.Dig LAYER 8 @johnpoz
      last edited by Bob.Dig

      @johnpoz said in Disabling DNS Rebinding Checks does alter domain overrides:

      have you tried restarting unbound once you have made a change, like turning off rebind protection?

      Yes, I did. And

      # Set private domains in case authoritative name server returns a Private IP address
      

      is also missing. But I think this is essential for Domain Overrides to work correctly. It shouldn't get deleted when turning off dns rebind checks. I will file a bug report, at least you haven't give me any reason to not do it. ๐Ÿ˜‰

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

        @Bob-Dig no that whole section should go away if you turn off rebind protection. Those IP ranges are what tell unbound its a rebind.. if there is no networks in there, then it wouldn't be considered a rebind.

        Give me a bit, let me have another cup of coffee and I will setup an actual domain override that will work and simple enough to tell if rebind is working or not..

        edit: ok, something is going on.. Its not the rebind thing.. But looks to be related to dnssec.. But there is not dnssec anything on the host overrides I put in my upstream pfsense. I can get it to work if I set the domain to not secure.. Or if I disable dnssec on the downstream pfsense.

        nonsecure.jpg

        Ok this might need more coffee, or better yet a couple of Micheladas ;)

        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

        Bob.DigB 1 Reply Last reply Reply Quote 1
        • Bob.DigB
          Bob.Dig LAYER 8 @johnpoz
          last edited by Bob.Dig

          @johnpoz said in Disabling DNS Rebinding Checks does alter domain overrides:

          Give me a bit, let me have another cup of coffee and I will setup an actual domain override that will work and simple enough to tell if rebind is working or not..

          I actually don't know what rebind means. I only know that Domain Overrides don't work for me anymore if rebind checks is disabled.

          But I have other options set as well in the advanced settings, so yeah, please check when you are comfortable.

          My uneducated guess is, while it is ok that the following is gone

          # For DNS Rebinding prevention
          

          the following should stay

          # Set private domains in case authoritative name server returns a Private IP address
          

          but it is also gone and domain overrides don't work anymore.

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

            @Bob-Dig see my edit

            A rebind is if you ask a dns for something and it returns a rfc1918, when it shouldn't.. Normally the only time you should get back rfc1918 for a fqdn, is if the resource is local.. If your asking some other dns, like if you forward to some other dns - it shouldn't be a rfc1918..

            edit:
            Normally with dnssec - if there is no dnssec setup on the domain, then shouldn't matter.. Hmmm example.com is a actual valid domain.. So wonder if its signed with dnssec, and the host override is failing because of that.

            Are you really using example.com - or some other domain?

            Just looked and yeah example.com does have dnssec enabled - so yeah that would explain why its failing unless set the domain to non secure.. What domain are you actually using? Send it to me PM if you don't want to make public.

            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

            Bob.DigB 1 Reply Last reply Reply Quote 1
            • Bob.DigB
              Bob.Dig LAYER 8 @johnpoz
              last edited by

              @johnpoz said in Disabling DNS Rebinding Checks does alter domain overrides:

              What domain are you actually using? Send it to me PM if you don't want to make public.

              Mine should have dnssec too. But I don't see why this matters here, it was working fine, while dns rebind was in check. ๐Ÿ˜‰
              PM inbound.

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

                @Bob-Dig said in Disabling DNS Rebinding Checks does alter domain overrides:

                while dns rebind was in check

                because when you have rebind enabled, and then add a domain override it auto addess that its not secure and to not worry about dnssec.

                When you disable rebind it doesn't add anything because your not doing a rebind, but it would then be doing dnssec.

                See the custom option I setup to say hey example.com doesn't have to pass dnssec..

                So either leave rebind on, which should be fine. It is a good thing to do rebind checking. Or either completely turn off dnssec (bad to do) or set the specific domain to be ok with not passing dnssec checks.

                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

                Bob.DigB 1 Reply Last reply Reply Quote 1
                • Bob.DigB
                  Bob.Dig LAYER 8 @johnpoz
                  last edited by Bob.Dig

                  @johnpoz said in Disabling DNS Rebinding Checks does alter domain overrides:

                  because when you have rebind enabled, and then add a domain override it auto addess that its not secure and to not worry about dnssec.

                  When you disable rebind it doesn't add anything because your not doing a rebind, but it would then be doing dnssec.

                  Ok, thanks for clarifying that. But the more ideal outcome would be that if I disable rebind check, that it still doesn't check for dnssec for a domain override, right? Now the question is, is it doable or is unbound not capable to that solution. But your right, the easiest thing to do for me is to enable dns rebind check. I will have to give my email server a different dns server then because of reasons.

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

                    @Bob-Dig said in Disabling DNS Rebinding Checks does alter domain overrides:

                    if I disable rebind check, that it still doesn't check for dnssec for a domain override

                    Yeah guess that could be an option set, that if rebind is disabled completely to still add the non secure setting for domain overrides.. But its easy enough to do with just custom setting.

                    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

                    Bob.DigB 1 Reply Last reply Reply Quote 1
                    • Bob.DigB
                      Bob.Dig LAYER 8 @johnpoz
                      last edited by

                      @johnpoz said in Disabling DNS Rebinding Checks does alter domain overrides:

                      But its easy enough to do with just custom setting.

                      I am GUI addicted and pfSense is a GUI in the first place. I will leave it up to netgate what to do with my report. Thanks again for looking into it.

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

                        @Bob-Dig you can set the custom setting in the gui..

                        To be honest not sure if I like that it auto adds anything, what if I don't want to disable rebind on where I am forwarding too? I think it should require to choose that I want to disable rebind or dnssec.. Maybe they could add some checkboxes when you add the domain override..

                        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

                        Bob.DigB 2 Replies Last reply Reply Quote 0
                        • Bob.DigB
                          Bob.Dig LAYER 8 @johnpoz
                          last edited by

                          @johnpoz said in Disabling DNS Rebinding Checks does alter domain overrides:

                          To be honest not sure if I like that it auto adds anything, what if I don't want to disable rebind on where I am forwarding too? I think it should require to choose that I want to disable rebind or dnssec..

                          For DNSSEC it is clear. As soon as you use a domain override, you want DNSSEC to be disabled for that, right? And this was the problem here, so the solution seems easy: Do still set private domains in the config even if dns rebind check is disabled.

                          johnpozJ 1 Reply Last reply Reply Quote 0
                          • Bob.DigB
                            Bob.Dig LAYER 8 @johnpoz
                            last edited by

                            @johnpoz said in Disabling DNS Rebinding Checks does alter domain overrides:

                            @Bob-Dig you can set the custom setting in the gui..

                            Na... ๐Ÿ˜‰

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

                              @Bob-Dig said in Disabling DNS Rebinding Checks does alter domain overrides:

                              you want DNSSEC to be disabled for that, right?

                              Not necessarily.. If where you are forwarding does actually do dnssec then no you wouldn't want to disable it.

                              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
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.