Linux网络管理全攻略
1. DNS查询命令
在Linux系统中,我们可以使用 host 和 dig 命令来检查DNS服务器是否被正确查询。
- host 命令 :默认情况下, host 命令会为DNS查询生成更简单的输出。例如:
$ host redhat.com
redhat.com has address 209.132.183.181
redhat.com mail is handled by 5 mx1.redhat.com.
redhat.com mail is handled by 10 mx2.redhat.com.
此命令显示了 redhat.com 的IP地址以及为其服务的邮件服务器(MX记录)的名称。
- dig 命令 : dig 命令显示的信息类似于保存DNS记录的文件中的信息。例如:
$ dig redhat.com
; <<>> DiG 9.9.6-RedHat-9.9.6-4.fc21 <<>> redhat.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<-
超级会员免费看
订阅专栏 解锁全文
979

被折叠的 条评论
为什么被折叠?



