Solved Interface specific DNS servers/settings

VPN to work, want to add work search domains and work DNS servers for the tun0 interface.
Linux I have a "vpn-up" script that does things like "resolvectl dns tun0 1.2.3.4" and "resolvectl domain tun0 work.domain.com".

I can't seem to find similar stuff for FreeBSD.
I realize I can wholesale overwrite /etc/resolv.conf but was just wondering if there was another way.

I'll accept "go look at this chapter in the handbook"

thanks
 
Turns out the pkg install has a file /usr/local/libexec/openvpn-client.up which parses any dhcp-options sent by the server and does all the work, so simple modification of the openvpn client config file.
 
Back
Top