DNS requests not being tunneled thru OpenVpn
I have a brand new linode and followed the openvpn installation instructions described here including the dnsmasq as I want to tunnel those requests too.
Everything works from the client except that I can see the DNS request being requested on the client.
Does anybody know why is that?
The client is an XP machine and the TUN/TAP network has priority, I read also somewhere that it might be that my DNS on my linode (dnsmasq) is not working so it's defaulting to the local one.
How can I test that my server dnsmasq is working from the tunnel?
Any info is appreciated
4 Replies
My workaround was to manually specify Google's public DNS for my OpenVPN adapter, but it's still sub-optimal.
@pic.micro23:
Everything works from the client except that I can see the DNS request being requested on the client.
Maybe this
Whether communication with these DNS servers that you have configured your openvpn server to push to the client happens over the tunnel or not should simply come down to the routing table on the client and in turn what routes are pushed by the openvpn server.
If the DNS servers are not on one of the networks that the openvpn server pushes a route for, there is no reason why the client should communicate with it over the tunnel.
Possible solution if this is indeed the issue: Simply add route(s) as appropriate for anything you want tunneled.
I tried changing this the priority in the client and it did not work so that leaves the option that Guzpas said about the DNS not working correcly on the server side.
I research how to change the DSN to be used or ROUTES on the openvpn config.
Thx