標籤:sp strong on bs ad ef as res 程式
描述:
Nslookup指令是一個查詢internet網域名稱服務 (DNS)的程式。Nslookup指令有兩個模式:互動式和非互動式。
互動式模式允許使用者查詢不同種類的主機和網域名稱或在一個網域名稱裡輸出主機列表,目的是查詢網域名稱的相關資訊。
非互動式模式只被用來輸出名稱和主機或網域名稱被要求的資訊。
例子:
# nslookup
> www.baidu.com
Server:172.31.0.2
Address:172.31.0.2#53
Non-authoritative answer:
www.baidu.comcanonical name = www.a.shifen.com.
Name:www.a.shifen.com
Address: 220.181.111.188
Name:www.a.shifen.com
Address: 220.181.112.244
# nslookup www.baidu.com
Server:172.31.0.2
Address:172.31.0.2#53
Non-authoritative answer:
www.baidu.comcanonical name = www.a.shifen.com.
Name:www.a.shifen.com
Address: 220.181.112.244
Name:www.a.shifen.com
Address: 220.181.111.188
# nslookup
> set q=mx
> www.baidu.com
Server:172.31.0.2
Address:172.31.0.2#53
Non-authoritative answer:
www.baidu.comcanonical name = www.a.shifen.com.
Authoritative answers can be found from:
a.shifen.com
origin = ns1.a.shifen.com
mail addr = baidu_dns_master.baidu.com
serial = 1410210001
refresh = 5
retry = 5
expire = 86400
minimum = 3600
DNS查詢指令nslookup