查看本机使用的DNS
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#53Non-authoritative answer: Name: / Address: 59.37.71.88