我在两台计算机之间建立了 VPN 连接,用于 DNS 解析。但是,nslookup
实际上只有 可以解析任何名称。ping
和浏览均失败。无论使用什么软件尝试解析名称,我如何才能解析这些名称?
ipconfig /all
:
C:\Users\CJDennis>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : portable
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe FE Family Controller
Physical Address. . . . . . . . . : **-**-**-**-**-**
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Wireless LAN adapter Local Area Connection* 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
Physical Address. . . . . . . . . : **-**-**-**-**-**
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
PPP adapter VPN Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VPN Connection
Physical Address. . . . . . . . . :
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.0.42.7(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 0.0.0.0
DNS Servers . . . . . . . . . . . : 10.0.42.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Broadcom BCM43142 802.11 bgn Wi-Fi M.2 Adapter
Physical Address. . . . . . . . . : **-**-**-**-**-**
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::98b1:5432:e500:da38%4(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.0.18(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Saturday, 17 March 2018 10:48:43 AM
Lease Expires . . . . . . . . . . : Saturday, 17 March 2018 1:48:11 PM
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DHCPv6 IAID . . . . . . . . . . . : 81288674
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-1A-6D-D6-30-8D-99-F4-1B-74
DNS Servers . . . . . . . . . . . : 198.142.152.164
198.142.152.165
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : **-**-**-**-**-**
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
客户端的 IP 是10.0.42.7
,主机的 IP 是10.0.42.1
。客户端是一台 Windows 10 机器。
nslookup
和ping
命令:
C:\Users\CJDennis>nslookup learn
Server: UnKnown
Address: 10.0.42.1
Name: learn
Address: 10.0.42.1
C:\Users\CJDennis>ping learn
Ping request could not find host learn. Please check the name and try again.