dig的windows版
忍受不了windows的nslookup,连打这个命令都很陌生~
还是linux的dig好用,也习惯点。
下载dig for windows的版本
http://members.shaw.ca/nicholas.fong/dig/dig-files3.zip
在D盘创建一个新文件夹dig,然后解压到里面
- cd /d D:\dig
-
- 检测文件的完整性
-
- D:\dig>sha1sum *
- 489a8ca7c7851088ade58c404ddde1a926559003 cygwin1.dll
- 57487baeaa0eb2848557b7ca54ed9183eafc73fa dig.exe
- 97dbd755d67a5829c138a4708be7a4f26ed0894c host.exe
- d22e4b8956e1831ff0f9d07620ec19bf171f0c29 libbind9.dll
- 81588f0be7d3c6b320edc314532d9f2d0a105594 libdns.dll
- e0bd7187bbc01003abfe7472e64b68cd1bdb6bab libeay32.dll
- f445362e728a902796ec6871a79c6307054974e4 libisc.dll
- b3255c0e4808a703f95c217a91ffcd6940e680c9 libisccfg.dll
- dfbde4f9e25fd49a0846e97fd813d6876dc94067 liblwres.dll
- 61b8f573db448ae6351ae3475c2e7c482d81533c msvcr70.dll
- da39a3ee5e6b4b0d3255bfef95601890afd80709 resolv.conf
- 4a578ecd09a2d0c8431bdd8cf3d5c5f3ddcddfc9 sha1sum.exe
- 9d9ec0e2cf59e14d9db618d10b55b881bb7d195b whois.exe
-
- 我的电脑,右键属性,高级,系统变量
- 修改
- 变量名:PATH
- 变量值:c:\windows\system32;d:\dig
- #system32后面的分号不能有空格!
-
- 测试:
- C:\Documents and Settings\Administrator>dig google.com
-
- ; <<>> DiG 9.3.2 <<>> google.com
- ;; global options: printcmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 797
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
-
- ;; QUESTION SECTION:
- ;google.com. IN A
-
- ;; ANSWER SECTION:
- google.com. 300 IN A 66.249.89.99
- google.com. 300 IN A 66.249.89.104
-
- ;; Query time: 109 msec
- ;; SERVER: 8.8.4.4#53(8.8.4.4)
- ;; WHEN: Thu Sep 16 23:31:02 2010
- ;; MSG SIZE rcvd: 60