让Linux系统支持nslookup和dig

2015年3月9日16:38:03系统教程评论619

经常要用到nslookup来查询域名的解析情况,但是到了Linux上输入nslookup却报不支持这个指令。一直还以为Linux上不支持查询域名解析情况呢。今天借助强大的搜索引擎,终于知道Linux上也可以使用nslookup查询域名解析情况。文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

由于一些Linux系统下默认无此指令,我们要为Linux系统安装一个包来使该命令生效,安装这个包后同时也支持dig命令。文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

Centos:文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

yum install bind-utils文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

Ubuntu:文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

sudo apt-get install dnsutils文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

Debian:文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

apt-get update
apt-get install dnsutils文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

安装完成后,Linux系统就支持通过nslookup命令查询域名解析情况,使用方法与Windows系统类似。文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

nslookup指令的使用方法请参看《怎样使用nslookup查询域名解析情况文章源自堕落的鱼-https://www.duoluodeyu.com/1150.html

匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定