DNS 阅读 2626
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=dd8f1e1fa8b058f159feb2e514c68405&t=6ae21c00

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

host 192.30.252.153

https://file.lulublog.cn/images/3/2023/06/ZpvvOgx55AvGFmjbv4A5Lv5lV5MVxm.jpg?sign=54fceb3d0ac129e23941936ae7ab3b15&t=6ae21c00

二、nslookup 命令

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

nslookup

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

https://facebook.github.io/

https://file.lulublog.cn/images/3/2023/06/KCZqr3eXc9R2F9E9cQ3l9E6fQ012E1.jpg?sign=11d61890dd67c02da58f02c0564571a6&t=6ae21c00

三、whois 命令

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

whois github.com