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

    HA Config BIND DNS sync setup problem

    HA/CARP/VIPs
    3
    17
    2.0k
    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 @bolvar
      last edited by

      @bolvar

      Nobody has a bind dns sync setup to help? :/

      1 Reply Last reply Reply Quote 0
      • andrewKA
        andrewK
        last edited by

        I have the same problem...

        Anybody?

        -APK

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

          @andrewK

          I have solved the problem...

          You need to set up a few thing.
          First in the bind dns under views you need to set up the your ha port at match-clients,
          and in the custom views you have to allow the ip of the second node.
          After that in the zone you need to allow to transfer for the ha port to.
          And in the sync you need to select to sync to backup server.

          And now it is working for me.

          bolvar

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

            @bolvar

            But not almost solved the problem.
            I have made a factory reset on my secondary node, the bind config sync workes, but when i made a change on the HA and check with az mxtoolbox the dns check it fails for my dns server. I saw in the logs that the query comes in and the answere goes out but it says that my dns not responding.

            Anybody has a solution for this?

            bolvar

            1 Reply Last reply Reply Quote 0
            • kiokomanK
              kiokoman LAYER 8
              last edited by

              nothing in the bind log?

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                @kiokoman

                Today i will do a swap again from the primary server, and look around it but i think yesterday there was nothing special in the logs.

                bolvar

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

                  @kiokoman

                  Sadly nothing in the logs.I saw in the firewall logs that i get a dns query from outside but it gets an answere.

                  1 Reply Last reply Reply Quote 0
                  • kiokomanK
                    kiokoman LAYER 8
                    last edited by

                    i usually use dig to test my bind9, i don't have HA though
                    try with https://www.digwebinterface.com/
                    put your host and your ns ip (specify myself:)
                    and see if it's answering or not
                    something like this
                    Immagine.jpg

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                      @kiokoman

                      Thanks but i cannot se how can this help me :D
                      An mxtoolbox is the same, and the problem is when i change to the secondary node, my dns is not respondig, cant test with this tool. My backup name server runing only.

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

                        Here is the log:

                        Bind_DNS.jpg

                        When i test from mxtoolbox i get a pass, but on the web page it says unreacheble.

                        Nobody has any ide what am i doing wrong? :/

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

                          Nobody expert on this problem?
                          The question is that im thinking on that now i have the ha cfg with one master server and in another site i have a slave cfg-ed.
                          In this case in the HA cfg i need to setup my backup node bind dns to master?

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

                            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
                            • kiokomanK
                              kiokoman LAYER 8
                              last edited by

                              you should check allow-transfer / allow-notify / allow-update statement, make a screenshot of your configuration if you can, just hide sensitive information, hard to tell without more info

                              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                              Please do not use chat/PM to ask for help
                              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                                @kiokoman

                                Under Bind dns advanced future custom option i have allow notify and update,i need here the allow transfer to?

                                1 Reply Last reply Reply Quote 0
                                • kiokomanK
                                  kiokoman LAYER 8
                                  last edited by kiokoman

                                  idk i don't have bind installed on pfsense, i have a dedicated server for bind9 and to transfer from my master to the slave i have it configured like this:

                                  server 172.17.0.100 {
                                          keys {
                                                  rndc-key;
                                          };
                                  };
                                  
                                  server  2001:470:b682:ffff:ffff:ffff:ffff:fffe {
                                          keys {
                                                  rndc-key;
                                          };
                                  };
                                  ..................
                                  
                                  zone "kiokoman.eu.org" {
                                          type master;
                                          allow-transfer {151.3.106.211; 2001:470:b4e1:ffff:ffff:ffff:ffff:fffe; 192.168.10.202; 2001:470:26:5dc:ffff:ffff:ffff:fffd;};
                                          also-notify {151.3.106.211; 2001:470:b4e1:ffff:ffff:ffff:ffff:fffe; 192.168.10.202; 2001:470:26:5dc:ffff:ffff:ffff:fffd;};
                                          file "/etc/bind/external/pri.kiokoman.eu.org.signed";
                                          auto-dnssec maintain;
                                          update-policy local;
                                          };
                                  
                                  

                                  on one of the slave:

                                  server 172.17.0.100 {
                                          keys {
                                                  rndc-key;
                                          };
                                  };
                                  
                                  server  2001:470:b682:ffff:ffff:ffff:ffff:fffe {
                                          keys {
                                                  rndc-key;
                                          };
                                  };
                                  ...............................
                                  zone "kiokoman.eu.org" {
                                          type slave;
                                          masters {172.17.0.100; 2001:470:b682:ffff:ffff:ffff:ffff:fffe;};
                                          file "/etc/bind/external/pri.kiokoman.eu.org.signed";
                                          };
                                  
                                  

                                  under xfer-out.log and xfer-in.log ( channel xfer-in_file / channel xfer-out_file)

                                  3c81316a0 192.168.10.202#56101/key rndc-key (kiokoman.home): view trusted: transfer of 'kiokoman.home/IN': IXFR ended
                                  23-Jan-2020 20:13:25.430 client @0x7f53d0141340 192.168.10.202#43941/key rndc-key (2.168.192.IN-ADDR.ARPA): view trusted: transfer of '2.168.192.IN-ADDR.ARPA/IN': IXFR started: TSIG rndc-key (serial 2018046843 -> 2018046844)
                                  23-Jan-2020 20:13:25.430 client @0x7f53d0141340 192.168.10.202#43941/key rndc-key (2.168.192.IN-ADDR.ARPA): view trusted: transfer of '2.168.192.IN-ADDR.ARPA/IN': IXFR ended
                                  23-Jan-2020 20:56:05.485 client @0x7f53c81221e0 192.168.10.202#48387/key rndc-key (kiokoman.home): view trusted: transfer of 'kiokoman.home/IN': IXFR started: TSIG rndc-key (serial 2019092987 -> 2019092989)
                                  23-Jan-2020 20:56:05.485 client @0x7f53c81221e0 192.168.10.202#48387/key rndc-key (kiokoman.home): view trusted: transfer of 'kiokoman.home/IN': IXFR ended
                                  

                                  if something go wrong you should check/rise verbosity of that log

                                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                                  Please do not use chat/PM to ask for help
                                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                                    @kiokoman

                                    After years, new internet provider, same problem, we have managed to switch our rack hosted servert to ha, and the same config worked perfect on the other isp network. So the problem is related to the internet provider, but saddly they say everything is ok...But its workes, so the config is okay, just need a good isp endpoint :D

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