Skip to content

krazykral/openvpn-update-resolv-conf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

OpenVPN Update resolvconf

Description

This is a script to update your /etc/resolv.conf with DNS settings that come from the received push dhcp-options. Since network management is out of OpenVPN client scope, this script adds and removes the provided from those settings.

This script was found on the OpenVPN page of the Archlinux Wiki

Usage

Install openresolv

Place the script in /etc/openvpn/update-resolv-conf.sh or anywhere the OpenVPN client can acess.

Add the following lines to your client configuration:

# This updates the resolvconf with dns settings
script-security 2
up /etc/openvpn/update-resolv-conf.sh
down /etc/openvpn/update-resolv-conf.sh

Just start your openvpn client with the command you used to do.

Support

For bugs and another questions open a ticket in the Isssues Page.

You can find me on irc.freenode.org and in last case mail me through the email that is on my Github Profile

License

Licenced under GNU GPL.

Credits

2014 - Alfredo Palhares masterkorp@masterkorp.net

2013 - colin@daedrum.net Fixed intet name

2006 - chlauber@bnc.ch

About

Script that updates DNS settings are pushed by the OpenVPN server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%