dig

安装

1
2
3
apt-get install dnsutils

yum install bind-utils

查询

1
dig auth.vipthink.cn @114.114.114.114

nslookup

检查域名A记录

1
2
3
nslookup baidu.com 114.114.114.114
nslookup -type=a qq.com 114.114.114.114
nslookup baidu.com

检查域名NS记录

1
2
3
nslookup
> set type=ns
> zahui.fan 114.114.114.114

检查域名CNAME记录

1
2
3
nslookup
> set type=cname
> zahui.fan 114.114.114.114