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

    DNS Resolver won't start with BIND running

    Scheduled Pinned Locked Moved DHCP and DNS
    11 Posts 2 Posters 1.5k 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
      gogglespisano
      last edited by

      I'm using BIND for many zones and the default DNS resolver for pfSense. it's been working for years.

      I'm trying to set BIND as the public DNS only and use DNS Resolver for the pfSense DNS.

      I set BIND to use specific virtual IPs only (public static IP addresses). I set DNS Resolver to use LAN and localhost.

      I don't get any config error, and I can apply changes. However, unbound won't start and the only DNS system log entries are from named. I can't find any log entries for unbound.

      I've tried adding, removing entries in the general setup for dns servers. none of that helped.

      How can I troubleshoot why unbound service won't start?

      -Stuart

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

        did you change the control port - they like to use the same 953 port. You can change it in the bind config to use a different port.

        Why do you want/need to run both? If your running bind it can do anything unbound can do, etc.

        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
          gogglespisano
          last edited by

          Thanks for the suggestion. I added "controls { };" to the global settings, but unbound still doesn't start and I still don't see anything in the system log about the failed start.

          I want to enable DNSBL in pfBlockerNG. It says you have to use DNS Resolver, I assume so it can dynamically add the blacklisted domains?

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

            @gogglespisano said in DNS Resolver won't start with BIND running:

            I added "controls { };

            Huh? Dude change the port in BIND... Bottom show advanced settings. If unbound can not start you would see it in the log... You sure you even have it enabled?

            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
              gogglespisano
              last edited by

              I found the log entry. The conflict is port 953 on 172.0.0.1.

              From what I read in the BIND documentation, control { }; is supposed to disable remote administration. I can still connect to 127.0.0.1:953 so it isn't working.

              Sorry, I don't see "advanced settings" in BIND settings.

              1 Reply Last reply Reply Quote 0
              • G
                gogglespisano
                last edited by

                The BIND config has an entry for controls, so my entry isn't disabling it.

                #Bind pfsense configuration
                #Do not edit this file!!!

                key "rndc-key" {
                algorithm hmac-md5;
                secret "xxxxxx";
                };

                controls {
                inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
                };

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

                  On the bottom of the page

                  0_1548454694031_bindadvanced.png

                  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
                    gogglespisano
                    last edited by

                    You must have a different version. This is what I have.

                    0_1548454878094_c36931c8-0e93-4746-906d-dd10e5e1ffa1-image.png

                    0_1548454854474_ed26e2be-a197-44bd-ab78-b57a8214a4da-image.png

                    0_1548454816670_f758a331-1c86-4f44-a016-af4e5aaaa320-image.png

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

                      Dude I am on the current version - if you do not see advanced on the bottom you have a problem

                      0_1548455105789_bindpng.png

                      Your global and custom are in the advanced section... I would reinstall the package, clear your browser cache.

                      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
                        gogglespisano
                        last edited by

                        I just reinstalled the BIND package and now I see the advanced settings.

                        Trying to change the control port now...

                        1 Reply Last reply Reply Quote 0
                        • G
                          gogglespisano
                          last edited by

                          Works now!

                          Thanks for the help.

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