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

    DNS resolver not starting

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    9 Posts 5 Posters 2.7k 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.
    • M
      maverick_slo
      last edited by

      Hi all!

      I have some problems starting DNS resolver on reboot.
      In logs:

      rc.bootup: The command '/usr/local/sbin/unbound -c /var/unbound/unbound.conf' returned exit code '1', the output was '[1523547507] unbound[60178:0] error: can't bind socket: Can't assign requested address for 2001:xxxx:xxx:xxx::1 [1523547507] unbound[60178:0] fatal error: could not open ports'

      After boot is complete, I can start it just fine manually.
      Maybe unbound tries to start itself a little too early?

      2001:xxxx:xxx:xxx::1 is IP of my LAN iface and it`s static.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • M
        maverick_slo
        last edited by

        Anyone?
        Tried all suggestions I found here on forums but none of them work..

        1 Reply Last reply Reply Quote 0
        • chpalmerC
          chpalmer
          last edited by

          Ive had this in the past when Ive manually configured interfaces in the resolver config that included IPv6-Link Local..  I believe its been fixed but occasionally if the ISP connection gets flaky unbound will not start or will stop for me here.  Seems finicky..

          I always start though by changing settings until I find the one that is causing it not to start.  Right now all seems happy here.

          I have "Transparent" and the first 4 boxes selected in the config..

          Triggering snowflakes one by one..
          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

          1 Reply Last reply Reply Quote 0
          • M
            maverick_slo
            last edited by

            For me it starts every time.
            Just not after reboot of pfsense.
            10 reboots 7 times not started 3 times started…

            1 Reply Last reply Reply Quote 0
            • chpalmerC
              chpalmer
              last edited by

              Yep- was the same here when I had the ipv6 link included..  Just would not start on reboot.  I could hit the start button in services and it would always start up..

              Testing meant I had to reboot constantly.

              Triggering snowflakes one by one..
              Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

              1 Reply Last reply Reply Quote 0
              • M
                maverick_slo
                last edited by

                I think this could be resolved simply with setting unbound to start a little later…

                1 Reply Last reply Reply Quote 0
                • H
                  hda
                  last edited by

                  Do you use PPPoE on WAN ?
                  DNS-Resolver can not handle listening on %pppoe, if select "WAN" on Outgoing Network Interfaces.

                  I use only "localhost" for Outgoing Network Interfaces. Odd, but it works ;)

                  1 Reply Last reply Reply Quote 0
                  • P
                    pfcode
                    last edited by

                    @hda:

                    Do you use PPPoE on WAN ?
                    DNS-Resolver can not handle listening on %pppoe, if select "WAN" on Outgoing Network Interfaces.

                    I use only "localhost" for Outgoing Network Interfaces. Odd, but it works ;)

                    What if an Interface (e.g. OPT) has a specific VPN (e.g. PIA) as the gateway, how do you set the incoming and outgoing Network interfaces in DNS Resolver?

                    Release: pfSense 2.4.3(amd64)
                    M/B: Supermicro A1SRi-2558F
                    HDD: Intel X25-M 160G
                    RAM: 2x8Gb Kingston ECC ValueRAM
                    AP: Netgear R7000 (XWRT), Unifi AC Pro

                    1 Reply Last reply Reply Quote 0
                    • H
                      Harvy66
                      last edited by

                      @maverick_slo:

                      I think this could be resolved simply with setting unbound to start a little later…

                      The term is "race condition". If it's what you think it is, which is also what I was thinking, it's not an issue of making it start arbitrarily later, but it should start after the interface is ready. The kludge of starting later may work in an arbitrary test case, but there will always be another case where the interface still isn't ready and Unbound will start too soon.

                      But I do agree with you from a practical aspect. I was not being critical of your answer, just making sure you had the vocabulary and clarifying the fundamental issue in case it wasn't completely concrete. Having the correct vocabulary not only helps with communication, but it helps with thinking. The brain actually uses the same structures for words to encode memory and thought. Thoughts are very much limited by our words.

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