DNS查詢指令nslookup

來源:互聯網
上載者:User

標籤: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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.