问题原文
原帖链接 · user2248702 · CC BY-SA 4.0
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.
社区高分解答
原帖链接 · KevDog · CC BY-SA 4.0
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>
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
