获取Windows通过dhcpparsing域名较less的名称

我有几个Windows客户端连接到freebsd pptp vpn(使用mpd)。 windows客户端从pptp连接获取ip地址和dhcp服务器。 pptp适配器属性如下。

PPP adapter vpn: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface Physical Address. . . . . . . . . : 00-53-45-00-00-00 Dhcp Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.10.16 Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . : 192.168.10.16 DNS Servers . . . . . . . . . . . : 192.168.1.1 203.xx.xx.xx 

我可以从我的Windows客户端ping到另一台机器,如果我给它的fqdn。

 C:\Documents and Settings\Sankar>ping nas.xx.ac.in Pinging nas.xx.ac.in [192.168.2.3] with 32 bytes of data: Reply from 192.168.2.3: bytes=32 time=871ms TTL=63 Reply from 192.168.2.3: bytes=32 time=1056ms TTL=63 Reply from 192.168.2.3: bytes=32 time=148ms TTL=63 Reply from 192.168.2.3: bytes=32 time=136ms TTL=63 Ping statistics for 192.168.2.3: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 136ms, Maximum = 1056ms, Average = 552ms 

但是默认情况下,dns服务器不是从pptp服务器接收到的,但是如果我使用dhcp中指定的服务器,则可以parsing名称nas。 (没有任何域名部分)

 C:\Documents and Settings\Sankar>nslookup Default Server: agni.xx.blah.com Address: 192.168.3.100 > server 192.168.1.1 Default Server: [192.168.1.1] Address: 192.168.1.1 > nas Server: [192.168.1.1] Address: 192.168.1.1 Name: nas Address: 192.168.2.3 > exit 

所以我的DNS服务器能够解决域名较less的名称。 当我input

 C:\Documents and Settings\Sankar>ping nas Ping request could not find host nas. Please check the name and try again. 

查询没有得到解决。 运行wireshark一起显示,Windows客户端正在发送显然没有得到回答的胜利请求。

 77 23.928754 192.168.3.28 192.168.3.255 NBNS Name query NB NAS<00> 

我的问题是我怎样才能以最小的努力获得“ping nas”的工作? 一个小问题是如何使它通过pptp发送给它的dns服务器,而不是在连接到pptpnetworking时在lan接口上configuration的那个服务器。

带着敬意,

拉吉

您可以尝试将Windows客户端上的“此连接的DNS后缀”设置为域名。 您还应该能够通过DHCP推送该设置。

推动它通过DHCP它应该是这样的:

 option domain-name "mydomain.com";