如何获取特定域名具有 PTR 记录的所有 IP 列表,例如 mail.example.com
目标是获得一个 IP 列表,
x.y.z.a
x.y.z.b
x.y.z.c
声称为 mail.example.com 提供服务。
答案1
在 Linux 中使用host
来显示与域名相关的所有 IP 地址。
sub@ubuntu:~$ host crashlytics.com
crashlytics.com has address 107.21.238.206
crashlytics.com has address 23.21.242.216
crashlytics.com has address 23.21.93.182
crashlytics.com mail is handled by 10 aspmx.l.google.com.
crashlytics.com mail is handled by 20 alt1.aspmx.l.google.com.
crashlytics.com mail is handled by 20 alt2.aspmx.l.google.com.
crashlytics.com mail is handled by 30 aspmx2.googlemail.com.
crashlytics.com mail is handled by 30 aspmx3.googlemail.com.
crashlytics.com mail is handled by 30 aspmx4.googlemail.com.
crashlytics.com mail is handled by 30 aspmx5.googlemail.com.