OpenVPN dhcp
Hello,
Is there a way to have an OpenVPN server push dhcp-options to the
clients that completely replace any existing entries in
/etc/resolv.conf?
Using these OpenVPN settings on the server:
push "dhcp-option DNS 10.8.0.1"
push "dhcp-option DNS fd00:10:8::1"
push "dhcp-option DOMAIN debian.org"
VPN'ed clients see this in /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE
OVERWRITTEN
nameserver 10.8.0.1
nameserver fd00:10:8::1
nameserver 8.8.8.8
search debian.org some-isp.tld
Note the ISP supplied "8.8.8.8" and "some-isp.tld" entries that remain
in /etc/resolv.conf after connecting to the VPN.
tia,
-Jim P.
Reply to: