解決 nslookup, dig , host Command Not Found

linux admin 2年前 (2022-09-20) 956次浏览 0个评论

nslookup, dig 及 host 这三个指令是 DNS 查询工具, 对 DNS 除错很实用, 原因是系统没有安装以上工具的套件, 执行以上指令会出现Command Not Found:

nslookup :command not found

dig :command not found

host:command not found

只要安装相关的套件包即可解决问题, RHEL 及 CentOS 安装 bind-utils; Debian 及 Ubuntu 安装 dnsutils:

RHEL / CentOS

yum install bind-utils

Debian / Ubuntu

sudo apt-get install dnsutils

VPS小白 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:解決 nslookup, dig , host Command Not Found
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址