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

    DNS via VPN connection

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 690 Views 2 Watching
    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.
    • ? Offline
      A Former User
      last edited by

      Hi

      I have setup an OpenVPN connection and the pfsense DNS Resolver with the Quad9 DNS Server. How can I force the DNS traffic through the VPN? I can select the VPN interface as outgoing interface in the Resolver config. This seems to do the job, but if the VPN disconnects it can't reconnect by itself , because it can't resolve the Hostnamen of the VPN Server, because the Resolver can't use the VPN interface. Any solution?

      V 1 Reply Last reply Reply Quote 0
      • V Offline
        viragomann @Guest
        last edited by

        @thisisme
        Is it really necessary that pfSense has to use the Resolver?
        In not, just configure it to connect to the external server directly in the General settings.

        Also maybe you can state an IP for the VPN server instead the host name.

        ? 1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User @viragomann
          last edited by

          @viragomann ypu are absolutely correct. I'm an idiot. I accidentally configured pfsense to only use 127.0.0.1 as DNS resolver and not as first with fallback to the ISP DNS

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