changing resolv.conf - update-resolv-conf script

Need help configuring your VPN? Just post here and you'll get that help.

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
H2O
OpenVpn Newbie
Posts: 18
Joined: Sun May 25, 2014 6:32 pm

changing resolv.conf - update-resolv-conf script

Post by H2O » Thu Jun 05, 2014 11:02 pm

Every time I run "openvpn --config "/etc/openvpn/some-config.ovpn", it fails to return the nameservers I had listed in "/etc/resolv.conf" back to what they were beforehand. There must be a step I have overlooked to make this happen. What am I missing?

User avatar
debbie10t
Forum Team
Posts: 24
Joined: Sat Mar 03, 2012 9:42 pm

Re: changing resolv.conf - update-resolv-conf script

Post by debbie10t » Mon Oct 06, 2014 11:20 am

On *nix systems you require this (or it's equivelent) in your client config:

Code: Select all

script-security 2
up   /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

Post Reply