changing resolv.conf - update-resolv-conf script
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 18
- Joined: Sun May 25, 2014 6:32 pm
changing resolv.conf - update-resolv-conf script
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?
- debbie10t
- Forum Team
- Posts: 24
- Joined: Sat Mar 03, 2012 9:42 pm
Re: changing resolv.conf - update-resolv-conf script
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