大网数据广告活动
服务器运维问答

OpenVPN Domain Suffix

· 52CE 我爱测

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" throu…

问题原文

原帖链接 · 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>

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-03-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。