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

Bind upgrade producing errors on pfsense 2.5 upgrade

pfSense Packages
16
112
29.1k
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.
  • W
    wrgraves
    last edited by wrgraves Feb 23, 2021, 6:40 PM Feb 23, 2021, 6:31 PM

    @viktor_g Ok, brought up a test machine and installed a fresh pfsense 2.5 and of course the caching bind config works so I restored my config and of course it gets the segment fault in named and dies so I decided to find an example install for bind, I used this one -> https://www.youtube.com/watch?v=Sgn4oNy85_o
    And as I went thru it I corrected several mistakes in my zones. Then used Status/Services to restart named and it works now. It looks like a bad zone will segment fault and crash your bind. I've been using these zones for years and that never happened in the past. A new feature?
    I put the changes in my production machine.
    and now I am up!!!

    H 1 Reply Last reply Feb 24, 2021, 9:24 AM Reply Quote 1
    • M
      matthijs
      last edited by Feb 24, 2021, 7:35 AM

      @viktor_g What mistakes were in your zones ? and how to correct if all this configuration gets generated by the webinterface ?

      H W 2 Replies Last reply Feb 24, 2021, 9:27 AM Reply Quote 0
      • H
        horrza @wrgraves
        last edited by Feb 24, 2021, 9:24 AM

        @wrgraves Thank you!

        login-to-view

        1 Reply Last reply Reply Quote 1
        • H
          horrza @matthijs
          last edited by Feb 24, 2021, 9:27 AM

          @matthijs "Name Server" and "Base Domain IP" was the problem in my case.

          M 1 Reply Last reply Feb 24, 2021, 9:59 AM Reply Quote 0
          • M
            matthijs @horrza
            last edited by matthijs Feb 24, 2021, 9:59 AM Feb 24, 2021, 9:59 AM

            @horrza

            I cannot understand that is causing the issue in my case these fields will result in the following records in de zone file (fictional IP and FQDN)

            @ IN NS nameserver.fqdn.com.
            @ IN A 1.1.1.1

            H 1 Reply Last reply Feb 24, 2021, 10:17 AM Reply Quote 0
            • H
              horrza @matthijs
              last edited by horrza Feb 24, 2021, 10:17 AM Feb 24, 2021, 10:17 AM

              @matthijs login-to-view

              I did as shown in the video on YouTube https://www.youtube.com/watch?v=Sgn4oNy85_o&t=337s

              1 Reply Last reply Reply Quote 0
              • W
                wrgraves @matthijs
                last edited by Feb 24, 2021, 12:46 PM

                @matthijs The video is a tutorial about configuring bind in pfsense and I just followed it while I looked at my config via the GUI. I wouldn't of even though some of the mistakes were mistakes. Like I put in the wrong base ip in the reverse zone and one of the reverse zones had localhost in the name of the nameserver and I changed it to 127.0.0.1. I cleared all the serial numbers so they were generated, probably no effect on that one. In my 2.16.172 reverse some I changed the first record from 1.2.16.172 to 1 PTR pfsense.localdomain. I increased the the Memory limit in the main config from 256M to 1024M, now that could of had an effect. Most of it was just little differences and all of the changes were made with the GUI.

                1 Reply Last reply Reply Quote 1
                • W
                  wrgraves
                  last edited by wrgraves Feb 24, 2021, 1:13 PM Feb 24, 2021, 1:12 PM

                  Here's a diff of the bind part of my backed up config...
                  </serial>
                  <allowupdate>localhost,localnets,localdomain</allowup | <allowupdate>any</allowupdate>
                  <allowquery>localhost,localnets,localdomain</allowque | <allowquery>none,any</allowquery>
                  <allowtransfer>localhost,localnets,localdomain</allow | <allowtransfer>any</allowtransfer>
                  <hostname>1.2.16.172.in-addr.arpa.</hostname> | <hostname>1</hostname>
                  <resultconfig>JFRUTCAxRAo7CiRPUklHSU4gMi4xNi4xNzIuaW4 | <resultconfig>JFRUTCAxRAo7CiRPUklHSU4gMi4xNi4xNzIuaW4
                  <serial>3</serial> | <serial>2614104211</serial>
                  <allowupdate>localhost,localnets</allowupdate> | <allowupdate>any</allowupdate>
                  <allowquery>localhost,localnets</allowquery> | <allowquery>any</allowquery>
                  <allowtransfer>localhost,localnets</allowtransfer> | <allowtransfer>any</allowtransfer>
                  <row> <
                  <hostname>KB9UNZ.DDNS.WS</hostname> <
                  <hosttype>A</hosttype> <
                  <hostvalue></hostvalue> <
                  <hostdst>127.0.0.1</hostdst> <
                  </row> <
                  <customzonerecords>R1cxLkFNUFIuREFWRVMuTkVUIElOIEEgMT | <customzonerecords></customzonerecords>
                  <resultconfig>JFRUTCA0MzIwMAo7CiRPUklHSU4gbG9jYWxob3N | <resultconfig>JFRUTCA0MzIwMAo7CiRPUklHSU4gbG9jYWxob3N
                  > <rpz></rpz>
                  <serial>2</serial> | <serial>2614104300</serial>
                  <allowupdate>localhost,localnets</allowupdate> | <allowupdate>any</allowupdate>
                  <allowquery>localhost,localnets</allowquery> | <allowquery>any</allowquery>
                  <allowtransfer>localhost,localnets</allowtransfer> | <allowtransfer>any</allowtransfer>
                  <hostname>1.0.0.127.in-addr.arpa.</hostname> | <hostname>1</hostname>
                  <resultconfig>JFRUTCAxRAo7CiRPUklHSU4gMC4wLjEyNy5pbi1 | <resultconfig>JFRUTCAxRAo7CiRPUklHSU4gMC4wLjEyNy5pbi1
                  <wireguard> | <wireguard></wireguard>
                  </wireguard> <
                  root@ubt:~/Downloads#

                  Well that didn't turn out like I hoped but I deleted a couple of things too.

                  1 Reply Last reply Reply Quote 0
                  • W
                    wrgraves
                    last edited by wrgraves Feb 24, 2021, 1:52 PM Feb 24, 2021, 1:49 PM

                    missed a line
                    <bind_ram_limit>256M</bind_ra | <bind_ram_limit>1024M</bind_r
                    Been marked as a spammer so I can't edit the previous entry. Note that you can turn off zones and that may help in debugging. Just go to the little box at the beginning of the zone and disable it and see if it stops crashing.

                    1 Reply Last reply Reply Quote 0
                    • F
                      freebsd-man
                      last edited by freebsd-man Feb 24, 2021, 3:07 PM Feb 24, 2021, 3:06 PM

                      Hi!

                      Could the usage of an additional ACL cause the problem?

                      Debian Discussion: Bug#980786: named: after upgrade to bind9=1:9.16.11-1 named is killed with status=11/SEGV

                      N M 2 Replies Last reply Feb 24, 2021, 3:37 PM Reply Quote 2
                      • N
                        nordeep @freebsd-man
                        last edited by Feb 24, 2021, 3:37 PM

                        @freebsd-man Thanks. It's make sense.

                        1 Reply Last reply Reply Quote 0
                        • M
                          madforic @freebsd-man
                          last edited by Feb 25, 2021, 8:19 AM

                          @freebsd-man That is the issue!
                          In my case I disabled any named acl and bind started as expected.
                          Named acls make sense only for master zones. Slave and forward zones works with named acls without proplems.

                          1 Reply Last reply Reply Quote 0
                          • M
                            matthijs
                            last edited by Feb 25, 2021, 8:34 AM

                            Is there maybe a way to workaround for this ACL issue ? I have two ACLs and I really need them (one is an ACL containing secondary name servers who are allowed to do zone transfers, the other is an ACL containing hosts who are allowed to do dynamic updates)

                            Or should I wait till this bug is fixed and a new release is provided ?

                            M 1 Reply Last reply Feb 26, 2021, 4:30 AM Reply Quote 0
                            • M
                              md0 @matthijs
                              last edited by Feb 26, 2021, 4:30 AM

                              I'm not sure if I have the same issue, but after upgrading to 2.5.0, named service, along with several other downloaded packages, fail to start upon reboot. A manual start of the named service clears the blockage and all the other services then proceed to start normally.

                              No logs whatsoever are saved on the first (automatic) start attempt. Afterwards, no error is shown, I've tried to delete my only named ACL, but the problem persists. Reinstalling the Bind package is also of no use.

                              Any hints on how I could debug this further would be appreciated.

                              1 Reply Last reply Reply Quote 0
                              • M
                                matthijs
                                last edited by matthijs Feb 26, 2021, 7:21 AM Feb 26, 2021, 7:18 AM

                                I read that this Bind bug (bug 980786) where freebsd-man is referring to is already fixed.
                                Can Netgate update the Bind package to the latest version?

                                1 Reply Last reply Reply Quote 1
                                • V
                                  viktor_g Netgate
                                  last edited by Feb 26, 2021, 9:44 AM

                                  try to update it directly (on x86):

                                  # pkg add -f https://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/lmdb-0.9.28,1.txz
                                  # pkg add -f https://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/bind916-9.16.12.txz
                                  
                                  F M N 3 Replies Last reply Feb 26, 2021, 11:32 AM Reply Quote 2
                                  • F
                                    freebsd-man @viktor_g
                                    last edited by Feb 26, 2021, 11:32 AM

                                    @viktor_g :
                                    With the BIND 9.16.12 package I can use an ACL without issues in a view and zones.

                                    The LDAP package is a needed dependency for installing the bind package this way.
                                    I think the final updated pfSense package will perhaps also have this dependency or will be a modified package without it.
                                    So I will delete both packages before updating bind via pfSense GUI.

                                    1 Reply Last reply Reply Quote 0
                                    • M
                                      md0 @viktor_g
                                      last edited by Feb 26, 2021, 11:45 AM

                                      @viktor_g
                                      I've updated to the 9.16.12 version and my problem persists, so this is clearly not related. Maybe I should open a support ticket?

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        matthijs
                                        last edited by Feb 27, 2021, 8:51 AM

                                        I updated directly to bind916-9.16.12 from the command line like viktor_g suggested, and all my Bind problems are SOLVED :-) , bind starts and runs without issues now. Can Netgate update the official Package Manager with bind916-9.16.12 ?

                                        Thanks in advance

                                        Kr

                                        Matthijs

                                        1 Reply Last reply Reply Quote 0
                                        • N
                                          nordeep @viktor_g
                                          last edited by Feb 27, 2021, 7:07 PM

                                          @viktor_g
                                          Confirm. After manual update bind to 9.16.12 issue has been solved, in my case.
                                          Thank you!

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