debain遭遇-bash: dig: command not found
刚装好的debian测试机,提示没有dig命令,google一下:
you have to install package dnsutils
- root@debian:~# dig
- -bash: dig: command not found
- root@debian:~# aptitude install dnsutils
- root@debian:~# dig qq.com |grep -Ev "^;.*|(^$)"
- qq.com. 38024 IN A 119.147.15.13
- qq.com. 38024 IN A 119.147.15.17
- qq.com. 38024 IN A 119.147.15.11
- qq.com. 37723 IN NS dns1.imok.net.
- qq.com. 37723 IN NS dns2.imok.net.
- qq.com. 37723 IN NS dns3.imok.net.
- dns1.imok.net. 80587 IN A 219.133.40.202
- dns2.imok.net. 80587 IN A 61.152.100.5
- dns3.imok.net. 80587 IN A 218.30.72.181