DNS 阅读 2695
DNS 第9章 其他DNS工具

DNS 第9章 其他DNS工具

2022-07-18 • lulubin

除了 dig,还有一些其他小工具也可以使用。

一、host 命令

host 命令可以看作 dig 命令的简化版本,返回当前请求域名的各种记录。

https://file.lulublog.cn/images/3/2023/06/R8bWZBVb7jnTqJ7uKd5nNFWNNtwqNk.jpg?sign=a51d423a33a790d1cf7dbbdda7920782&t=6b09a900

host 命令也可以用于逆向查询,即从 IP 地址查询域名,等同于dig -x 。

host 192.30.252.153

https://file.lulublog.cn/images/3/2023/06/ZpvvOgx55AvGFmjbv4A5Lv5lV5MVxm.jpg?sign=35c7107e47c927a9c1369aa886d54466&t=6b09a900

二、nslookup 命令

nslookup 命令用于互动式地查询域名记录。

nslookup

https://file.lulublog.cn/images/3/2023/06/iuZwEWTiiwxJ41TAZqU8iTEqtsxjEi.jpg?sign=a3de60f9febd8bd83cd0b53b66128005&t=6b09a900

https://facebook.github.io/

https://file.lulublog.cn/images/3/2023/06/KCZqr3eXc9R2F9E9cQ3l9E6fQ012E1.jpg?sign=ff33394ca5d7f5c89b7a17aae3581740&t=6b09a900

三、whois 命令

whois 命令用来查看域名的注册情况。

whois github.com