DNS via VPN connection
-
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?
-
@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.
-
@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