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

    Unbound fatal error after enabling DHCP registration

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

      On fully working pfSense 2.5.4 install, as soon as I enable DHCP registration on the DNS Resolver config page, unbound won't start after Apply Changes. Looked at the logs and this is what I found:

      unbound fatal error

      Something is messing up the path to unbound.conf to / instead of /var/unbound

      Unbound starts up fine from the command line with unbound-control -c /var/unbound/unbound.conf start.

      EDIT: Did some more digging and that's not the problem; the /unbound.conf path is OK since unbound does chroot to /var/unbound. The problem was my custom options, include: /var/preserve/adblock/blocked_domains.conf. For some reason that include fails when DHCP registration is enabled but works otherwise.

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

        @networknotwork said in Unbound fatal error after enabling DHCP registration:

        For some reason that include fails when DHCP registration is enabled but works otherwise.

        That some reason is the chroot.
        Whatever happens, unbounc can not go outside of the chroot. It 'lives' in /var/unbound/ - that is it's "/" or root.
        So "/var/preserve/" is inaccessible, except if that path lives here : /var/unbound/preserve/adblock/blocked_domains.conf

        @networknotwork said in Unbound fatal error after enabling DHCP registration:

        DHCP registration

        This functionality restarts unbound when a new lease is registered.

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

        1 Reply Last reply Reply Quote 0
        • N
          networknotwork
          last edited by

          Right, but it only breaks when DHCP Reg is enabled! So somehow it's escaping from the chroot jail.

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