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

    Sanity check - Unbound 1.13.1 restarting on DHCP registration

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 419 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.
    • C
      CaptainCathode
      last edited by

      Hi folks,
      I have unbound 1.13.1 running on pfSense 2.5. No issues with overall service stability although I've noticed that when a DHCP lease or static mapping is registered, the DHCP service sends a SIGHUP to the unbound daemon, causing a service restart.

      If I turn off automatic registration of leases and static mappings the service restarts cease.

      My assumption is that the restart is expected behaviour and needed so that unbound can reload the updated zone files into memory. My assumption could be totally incorrect too, so checking in here for the collective wisdom.

      Thanks

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @CaptainCathode
        last edited by Gertjan

        Yep, you're close.

        It's actually the process dhcpleases that is created when you check this option ( and this option only ) :

        5b92a5fa-68c9-4af2-8e30-858dfb6a423b-image.png

        This process checks the 'data base' that the dhcp server maintains.
        If it changes, because a new lease comes in or a lease gets changed, it makes a new /etc/hosts file with the existing leases (not timed out) and then SIGHUP unbound. At startup, unbound reads /etc/hosts.

        Only this option needs to be unchecked to stop unbound from being restarting .

        This one does NOT restart unbound :

        e59d623b-f307-4d10-8df4-dd82c070977a-image.png

        as the Static MAC DHCP info is written to the system wide /etc/hosts file at the boot of pfSense, and after that that list doesn't change any more - they are 'static' ***.
        When unbound starts, it reads the /etc/hosts file.

        I advise to leave this option checked, so the host names will get used for the local DNS purposes.

        *** except if the the admin changes the list with Static MAC leases, of course.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        C 1 Reply Last reply Reply Quote 1
        • C
          CaptainCathode @Gertjan
          last edited by

          @gertjan thank you, that makes sense

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