OpenVPN Domain Suffix

openvpnvpn

I've got an OpenVPN server to access our infrastructure remotely. All internal infrastructure is assigned a DNS name in the form SERVER_NAME.my.company.domain. When on site the the DHCP suffix is set to "my.company.domain" through DHCP option 15. I've tried to do the same through OpenVPN but it doesn't seem to work.

My server configuration has the following:

push "dhcp-option DOMAIN my.company.domain"
push "dhcp-option DNS 10.4.0.21"
push "dhcp-option DNS 10.4.0.22"

When connecting through OpenVPN Connect on both Mac and Windows the search domain is listed correctly in the log file. DNS servers are pushed correctly as I can access infrastructure through their full DNS name, however when I use only SERVER_NAME without the suffix I'm unable to access anything.

Best Answer

I ran across this problem today. This condition is discussed here for further reference: Open VPN Community Wiki and Tracker

Modify:

server.conf

push "dhcp-option ADAPTER_DOMAIN_SUFFIX <SEARCH_DOMAIN>"

or

client.conf

dhcp-option ADAPTER_DOMAIN_SUFFIX <SEARCH_DOMAIN>