標籤:window dig 安裝
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,如:
650) this.width=650;" src="https://teddysun.com/wp-content/uploads/2015/bind_1.png" title="bind_1" class="left" style="height:auto;vertical-align:middle;border:0px;width:auto;" alt="bind_1.png" />
如果是 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\ 目錄下。如所示:
650) this.width=650;" src="https://teddysun.com/wp-content/uploads/2015/bind_2.png" title="bind_2" class="left" style="height:auto;vertical-align:middle;border:0px;width:auto;" alt="bind_2.png" />
然後再將 dig.exe 也複製至 C:\Windows\System32\ 目錄下。
至此,安裝完成。
開啟 cmd ,驗證一下。如所示:
650) this.width=650;" src="https://teddysun.com/wp-content/uploads/2015/bind_3.png" title="bind_3" class="left" style="height:auto;vertical-align:middle;border:0px;width:auto;" alt="bind_3.png" />
如果你想使用 Google Public DNS 來進行 dig 查詢的話,那麼需要在 C:\Windows\System32\drivers\etc\ 目錄下添加一個名為 resolv.conf 的檔案。
內容如下:
nameserver 8.8.8.8
nameserver 8.8.4.4
查詢結果如所示:
650) this.width=650;" src="https://teddysun.com/wp-content/uploads/2015/bind_4.png" title="bind_4" class="left" style="height:auto;vertical-align:middle;border:0px;width:auto;" alt="bind_4.png" />
本文出自 “bulajunjun” 部落格,請務必保留此出處http://5148737.blog.51cto.com/5138737/1921876
window 下安裝 dig 命令