dch
Developer
I've got a pretty standard desktop FreeBSD setup in my home office, with a DHCP IP & DNS. A couple of customers have OpenVPN setups to connect in with, and I need to amend my DNS servers accordingly during the session.
At present I have a Small Shell Script(tm) that updates /etc/resolv.conf before and after the connection, but is there any functionality or hooks in openvpn (or FreeBSD) to do this more tidily? Ideally openvpn could tackle this directly,but adding the appropriate "dhcp-option DNS ..." to the config hasn't helped.
At present I have a Small Shell Script(tm) that updates /etc/resolv.conf before and after the connection, but is there any functionality or hooks in openvpn (or FreeBSD) to do this more tidily? Ideally openvpn could tackle this directly,but adding the appropriate "dhcp-option DNS ..." to the config hasn't helped.