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