文档:https://en.wikipedia.org/wiki/Dig_(command)
dig Command in Linux with Examples - GeeksforGeeks
1.简介
dig是用于查询域名系统(DNS) 的网络管理 命令行工具。
当命令中未指定特定名称服务器时,它使用resolv.conf中的默认解析器
nameserver 127.0.0.53
options edns0 trust-ad
search us-east-2.compute.internal
dig 支持国际化域名(IDN) 查询。
dig 是域名服务器软件套件BIND的一个组件。
dig 取代旧工具的功能,如nslookup和host
2.安装
#ubuntu
$sudo apt-get install dnsutils
redhat
$sudo yum install bind-utils
3.使用
dig命令使用以下格式:
dig [server] [name]