查看本机使用的DNS

SHELLDNS2010-10-13 13:08

1、(可用文本编辑器打开『resolv.conf』文件)
cat /etc/resolv.conf输出:

# Generated by NetworkManager
nameserver 202.96.134.133

2、(命令后的『/』可以是任意字符串,如『www.google.cn』)
nslookup /输出:

Server: 202.96.134.133
Address: 202.96.134.133#53

Non-authoritative answer:
Name: /
Address: 59.37.71.88

原文链接: http://blog.jtwo.me/check-the-machine-using-the-dns