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

    Unbound vs MultiWAN

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    8 Posts 5 Posters 4.4k 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.
    • thedaveCAT Offline
      thedaveCA
      last edited by

      I'm a 2.0 n00b (rebuilt on 2.0 after a hardware failure last weekend) and am exploring dnsmasq vs Unbound in a MultiWAN configuration.

      1. The basic question is this: Is Unbound MultiWAN aware/compatible?  Will DNS lookups work when the primary WAN is down if I'm resolving from the roots directly without forwarders?  How about if one WAN is experiencing high latency or packet loss (but isn't fully down)?

      With dnsmasq the solution was to have one forwarder on each WAN, but if we're not relying on forwarders than Unbound needs to be MultiWAN aware.

      1. Alternatively if I do still use forwarders, does Unbound send queries up to each forwarder and use the fastest like dnsmasq, or does it send in sequence only using the next forwarder in line if there was a timeout/failure/whatever?

      In case it's relevant:
      Current version: 2.0-BETA4
      Built On: Sat Dec 11 04:27:50 EST 2010

      1 Reply Last reply Reply Quote 0
      • S Offline
        sullrich
        last edited by

        #1)  You will need to add static routes for the root-servers (or at least half of them) if you wish to run unbound in this mode.  The alternative is to check the box and use the built in DNS Servers defined in System -> General.  Specify the WAN for each of these if you go this route and the static routes are automatically added behind the scenes.

        #2) That is a good question.  I am not sure if it does parallel queries like DNSMasq.

        I have alerted the author of the Unbound package (warren) so we can start discussing the root server issue in relation to static routes so this might be handled behind the scenes in the future.

        1 Reply Last reply Reply Quote 0
        • thedaveCAT Offline
          thedaveCA
          last edited by

          #1) I'm not sure that adding static routes to the roots will do any good.  Say I'm looking for www.pfsense.org, I first hit the roots (which will be reachable by way of static routes) and they refer me to the org. zone which is hosted by afilias-nst.org:

          org.                    172800  IN      NS      a0.org.afilias-nst.info.
          org.                    172800  IN      NS      a2.org.afilias-nst.info.
          org.                    172800  IN      NS      b0.org.afilias-nst.org.
          org.                    172800  IN      NS      b2.org.afilias-nst.org.
          org.                    172800  IN      NS      c0.org.afilias-nst.info.
          org.                    172800  IN      NS      d0.org.afilias-nst.org.
          ;; Received 438 bytes from 199.7.83.42#53(l.root-servers.net) in 326 ms
          

          Unless Unbound is multiWAN aware, I won't be able to query those servers to find out what NS is responsible for pfsense.org (rinse+repeat downstream)

          So in order to rely on static routes, I'd have to go through every domain we might need to access while the WAN is down and create static routes for 50% of each of their NS records.

          1 Reply Last reply Reply Quote 0
          • S Offline
            sullrich
            last edited by

            Yeah, I see what you mean.    You can try creating a floating rule for the host itself and try to use a load balancing, pool, etc.

            I have not tried this as of yet.  If that does not work you might be forced to use the built in DNS Servers.

            1 Reply Last reply Reply Quote 0
            • S Offline
              sseidel
              last edited by

              Hi sullrich,

              according to http://twitter.com/sullrich/status/19903124395266048 you seemed to have resolved the problem. I would be quite interested in this, could you share some more details?

              Thanks!

              Stefan

              1 Reply Last reply Reply Quote 0
              • jimpJ Offline
                jimp Rebel Alliance Developer Netgate
                last edited by

                We're trying to nail down and document that process better (the one sullrich has in his twitter feed) but we've hit a couple snags.

                Once the bugs are ironed out there will be a wiki doc about how to set it up.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sullrich
                  last edited by

                  Yeah it was working and then it stopped.  Trying to find the reason.  Hopefully we can get it resolved before RC1.

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    eri--
                    last edited by

                    Can you try with the latest snapshot that will come out and see if it works:

                    • Just enable AON and put any as source on rules
                    • Create a floating rule with direction out, quick selected, and the load balance pool
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.