解決 nslookup, dig , host Command Not Found

linux admin 3年前 (2022-09-20) 1345次浏览

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

原来频道被人恶意举报……新电报频道|加入电报群
转载请注明原文链接:解決 nslookup, dig , host Command Not Found
喜欢 (0)