Windows系統下安裝dig命令

來源:互聯網
上載者:User

標籤:microsoft   目錄   linux   drivers   步驟   查詢   .com   安裝   tle   

dig 是一個 Linux 下用來 DNS 查詢資訊的工具,全稱是Domain Information Groper,與 nslookup 類似,但比 nslookup 功能更強大。Windows 下只有 nslookup,如果也想用到 dig 命令,就只能自己動手安裝了。
dig 作為 bind 的一部分,官方網站如下:
http://www.bind9.net/download
下面來具體說說步驟,如何安裝。

 

選擇一個鏡像網站,點擊進入,比如:
ftp://ftp.nominum.com/pub/isc/bind9/
選擇最新版 9.9.7,如:

 
如果是 64 位元,如下:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x64.zip
如果是 32 位,如下:
ftp://ftp.nominum.com/pub/isc/bind9/9.9.7/BIND9.9.7.x86.zip

這裡以在 Windows 7 64 位元下安裝為例,解壓 BIND9.9.7.x64.zip,雙擊 vcredist_x64.exe (如果是 32 位,則檔案名稱為 vcredist_x86.exe)安裝 Microsoft Visual C++ 2012 Redistribution。
然後再將所有的 dll 檔案複製至 C:\Windows\System32\ 目錄下。如所示:

然後再將 dig.exe 也複製至 C:\Windows\System32\ 目錄下。

至此,安裝完成。
開啟 cmd ,驗證一下。如所示:

如果你想使用 Google Public DNS 來進行 dig 查詢的話,那麼需要在 C:\Windows\System32\drivers\etc\ 目錄下添加一個名為 resolv.conf 的檔案。
內容如下:
nameserver 8.8.8.8
nameserver 8.8.4.4

查詢結果如所示:

參考連結:
http://www.bind9.net/download

Windows系統下安裝dig命令

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.