DNS problem when connected to vpn server

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
nutcrack
OpenVpn Newbie
Posts: 1
Joined: Fri Apr 22, 2011 2:28 am

DNS problem when connected to vpn server

Post by nutcrack » Fri Apr 22, 2011 2:38 am

I have been using VPN to bypass my office internet restriction but since yesterday my server admin blocks DNS traffic where in when i'm connected to VPN my internet fails to resolve DNS. Is there a way to bypass this with VPN config? I'm running my own openVPN server.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: DNS problem when connected to vpn server

Post by janjust » Fri Apr 22, 2011 6:07 pm

when you're running your own vpn server you can also run your own DNS server on the same box; push out this DNS server to the client and (depending on the client OS) all DNS queries will also go via the VPN.

Code: Select all

push "dhcp-option DNS <IP>"
If you're using Windows it is helpful to use

Code: Select all

register-dns

Post Reply