-bash: dig: command not found

现象

复制代码
$ dig www.baidu.com
-bash: dig: command not found

解决

复制代码
$ yum -y install bind-utils

验证

复制代码
$ dig www.baidu.com

; <<>> DiG 9.10.6 <<>> www.baidu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63822
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;www.baidu.com.			IN	A

;; ANSWER SECTION:
www.baidu.com.		364	IN	CNAME	www.a.shifen.com.
www.a.shifen.com.	22	IN	A	220.181.38.150
www.a.shifen.com.	22	IN	A	220.181.38.149

;; Query time: 18 msec
;; SERVER: fd00:1:1010::1#53(fd00:1:1010::1)
;; WHEN: Wed Oct 09 17:24:04 CST 2024
;; MSG SIZE  rcvd: 101
相关推荐
非情剑1 小时前
Java-Executor线程池配置-案例2
android·java·开发语言
4t4run1 小时前
21、Linux常用命令-进程内存CPU相关命令
linux·运维·服务器
weixin_307779131 小时前
Jenkins Ioncions API 插件:现代化图标库在持续集成中的应用
java·运维·开发语言·前端·jenkins
AnAnCode1 小时前
【时间轮算法】时间轮算法的详细讲解,从基本原理到 Java 中的具体实现
java·开发语言·算法·时间轮算法
JIngJaneIL1 小时前
基于Java二手交易管理系统(源码+数据库+文档)
java·开发语言·数据库·vue.js·spring boot
ULTRA??1 小时前
C++类型和容器在MoonBit中的对应关系整理
开发语言·c++·rust
李白同学1 小时前
C++:queue、priority_queue的使用和模拟实现
开发语言·c++
Less is moree1 小时前
3.C语言文件操作:写操作fputc(),fputs(),fwrite()
c语言·开发语言
楼田莉子1 小时前
Linux学习:基础IO相关学习
linux·开发语言·c++·后端·学习