Push DNS domain to OpenVPN clients


If I don’t specify anything, OpenVPN pushes the openvpn domain to my (Mac) client. This makes short name resolution buggy. To avoid FQDN resolution when connecting to my LAN servers, I specify the DNS domain my VPN client should be part of:

# vi /etc/openvpn/server.conf
push "dhcp-option DOMAIN tumfatig.net"

That’s All Folks!