我认为这是可能的nslookup
,但是当我使用
nslookup stackoverflow.com
它给了我不同的IP(198.252.206.16)比whois cf-dns02.stackoverflow.com
(173.245.59.4)
答案1
返回的默认记录nslookup
是 A 记录,在本例中为198.252.206.16
。您应该与soa 记录标志nslookup
一起使用。querytype
# nslookup -querytype=soa stackexchange.com
...
Non-authoritative answer:
stackexchange.com
origin = cf-dns01.stackexchange.com
答案2
使用host
host -t soa www.stackoverflow.com
输出:
www.stackoverflow.com is an alias for stackoverflow.com.
stackoverflow.com has SOA record cf-dns01.stackoverflow.com. dns.cloudflare.com. 2016653041 10000 2400 604800 3600
使用类型NS
host -t NS www.stackoverflow.com
输出:
www.stackoverflow.com is an alias for stackoverflow.com.
stackoverflow.com name server cf-dns01.stackoverflow.com.
stackoverflow.com name server cf-dns02.stackoverflow.com.
答案3
您可以尝试查询授权开始对于域dig
:
[root@xxx01 ~]# dig stackoverflow.com soa +short
cf-dns01.stackoverflow.com. dns.cloudflare.com. 2016653041 10000 2400 604800 3600
您还可以查询所有名称服务器:
[root@xxx01 ~]# dig stackoverflow.com ns +short
cf-dns01.stackoverflow.com.
cf-dns02.stackoverflow.com.
取决于您实际上想要做什么。