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

    Unbound - possible to select outgoing interface priority or ordering

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 1.5k 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.
    • A Offline
      ak
      last edited by

      New user started on 2.2 so using the default Unbound DNS service. I have a WAN interface and two VPN out interfaces (to US and NL).

      I like to be able to have all DNS queries go out via one of the VPN connections and fall back to WAN if unavailable. I can see that I can select the interfaces - but there seems to be no way to set an order or priority on this. Is this possible?

      1 Reply Last reply Reply Quote 0
      • V Offline
        VBS
        last edited by

        BUMP

        I have almost the exact same set-up. (pfsense 2.2.3 now)

        I use policy-based routing and gateway groups to make my LAN use the VPN for internet and fall back to WAN when the VPN goes down.
        I, too, would like a way to do the same thing with my DNS in pfsense.

        I find that my DNS goes out either through VPN2 or both VPN1 and WAN (unless I specify something else manually)

        I would like to have my DNS use VPN1 only, and fall back to WAN only when VPN1 becomes unavailable. (just like my internet connection does)

        Having Unbound use WAN for DNS when the VPN is working is not an option as it exposes my public IP.
        On the other hand, having it use the VPN will stop name-resolution from happening if the VPN goes down.
        If I select both, the leaks both public IPs.

        It would be possible to achieve what I want with a separate DNS resolver on my LAN, but that means more equipment, more cost, more administrative effort.

        Does anyone know of a way to achieve this within pfSense?

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