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

    Bind DNS problem with HA cfg

    Scheduled Pinned Locked Moved DHCP and DNS
    12 Posts 3 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.
    • B
      bolvar
      last edited by

      Hy!

      I have a problem with my Bind dns server.
      Now we are runing on HA cfg and if i change the ha to my backup node the bind dns is not working properly.

      It looks like the cfg changes sync working but on the secondary node the resulting zone cfg file field is empty.
      I dont know why.
      pfsense_bind.jpg

      On the primary node it is filled.

      Somebody expert give me some help about this?

      Thanks for the help!

      bolvar

      1 Reply Last reply Reply Quote 0
      • B
        bolvar
        last edited by

        Seriously nobody has a solution for this? :/

        1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire
          last edited by

          I'm not familiar with that package but since it is a package, does it have its own ability to sync configuration, and what to sync? For instance pfBlockerNG and Suricata handle that in each package's settings.

          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
          • bmeeksB
            bmeeks
            last edited by bmeeks

            Packages themselves have to make specific calls to the pfSense base system, and also perform some other code mini-miracles, in order to sync their configuration across multiple hosts. I'm not intimately familiar with the bind package, but I do know that in the two packages I support (Suricata and Snort) I had to write quite a bit of code to accomplish syncing settings across mutliple hosts.

            My guess, from looking at what you posted, is the bind package creator is not grabbing and syncing all the configuration fields from the bind section of the master firewall's config.xml file. For example, that area you posted may very well actually be populated by the content of another physical file on the master firewall. Perhaps the bind package is not copying that master file to all the replication partners ?? Only the bind package creator/maintainer is likely to be able to answer that question. Anyone else would have to study the package source code and attempt to reverse-engineer the logic in order to figure out what's missing in the replication.

            B 1 Reply Last reply Reply Quote 0
            • B
              bolvar @bmeeks
              last edited by

              @bmeeks

              Thanks for the advise, i will look around on the bind forums then.

              bolvar

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

                @bolvar said in Bind DNS problem with HA cfg:

                @bmeeks

                Thanks for the advise, i will look around on the bind forums then.

                bolvar

                I didn't mean the upstream bind package creator, I meant the person who created the package for pfSense. The upstream folks on the bind forums will not be able to help unless it was one of them that created the pfSense GUI package for bind.

                Packages used on pfSense that have a GUI are created especially for pfSense. The underlying binary that performs the actual task is maintained by others, but the GUI you see is provided by PHP code written by the person who created the package for pfSense. The GUI generally is just a front-end tool that makes it easy to input configuration parameters that eventually are written to some conf file the underlying binary is looking for.

                B 1 Reply Last reply Reply Quote 0
                • B
                  bolvar @bmeeks
                  last edited by

                  @bmeeks

                  Aha, but where :D Maybe i thinked a little too much, if i use this forum i will get help about the problem, because after i made the HA config and tried a full reset on my second node, the problem camed up.

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

                    @bolvar
                    Your issue is, I believe, most definitely related to the GUI code in the pfSense package and not a problem with the bind binary.

                    I do not know who was the original creator of the pfSense bind GUI package.

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

                      I looked in the package manifest (really the Makefile), and this person is listed as the maintainer:

                      tech@voleatech.de

                      Don't know if that is still current.

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

                        The PHP file that contains the actual XMLRPC sync code is this one, if you want to have a look and are familiar with PHP programming:

                        /usr/local/pkg/bind.inc

                        I see that it syncs all the info stored in config.xml by bind, but it is not syncing any external configuration file contents. Don't know if that option box you show in your first post is actually an external file or not. By "external file" I mean data that is stored somewhere on the file system that is not encoded within the config.xml master configuration file used on pfSense.

                        B 2 Replies Last reply Reply Quote 0
                        • B
                          bolvar @bmeeks
                          last edited by

                          @bmeeks

                          Thanks for the help, try to contact with the creator of the pacage, but still sad that nobody has an aswere for this from pfsense support...Because the error camed when i used the HA cfg what is supported by the pfsense coders not the bind package creator.

                          1 Reply Last reply Reply Quote 0
                          • B
                            bolvar @bmeeks
                            last edited by

                            @bmeeks

                            I think i found the problem.

                            In slave state the zone file didnt get generated.
                            If i sate the state on my secondary node to master to zone file get generated, and mxtoolbox query workes.

                            Someone can give advise about this?

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