dig 与 nslookup 命令

dig 命令

显示域名的 MX 记录:

~# dig example.com MX

指定 DNS 服务器地址,获取域名的 TXT 记录,并简短输出:

~# dig txt @223.5.5.5 example.org +short

nslookup 命令

使用 nslookup 命令查询域名的 TXT 记录:

~# nslookup
set type=txt
blog.xxx.com