最近在VMWARE虛擬機裏遇到只要輸入無效的域名都會指向同一個IP地址,並且正確域名就是對的。服務器
[hadoop@test ~]$ nslookupdom
> hoop
Server: 192.168.253.2.net
Address: 192.168.253.2#53hadoop
Name: h.localdomainget
Address: 180.168.41.175虛擬機
> www.baidu.com域名
Server: 192.168.253.2it
Address: 192.168.253.2#53ast
Non-authoritative answer:
Name: www.baidu.com
Address: 115.239.211.112
Name: www.baidu.com
Address: 115.239.210.27
> test
Server: 192.168.253.2
Address: 192.168.253.2#53
Name: test.localdomain
Address: 180.168.41.175
> test.xqmaster.com
Server: 192.168.253.2
Address: 192.168.253.2#53
Non-authoritative answer:
Name: test.xqmaster.com
Address: 180.168.41.175
> test.xqmaster1.com
Server: 192.168.253.2
Address: 192.168.253.2#53
Non-authoritative answer:
Name: test.xqmaster1.com
Address: 180.168.41.175
結果發現是因爲VMWARE外面IP地址配置中有指到一個有短域名配置的DNS服務器引發。去掉便可。