Reputation: 111
For example, how can I find the IP address of the mail server @yahoo.com or @hotmail.com?
Is there a way to do this on terminal?
Thank you.
EDIT: I meant to say IP address of the mail server dealing email addresses ending with @yahoo.com or @hotmail.com
Upvotes: 1
Views: 19060
Reputation: 1
First find the mailserver (might be multiples):
dig yahoo.com mx
Then request the IPv4 record:
dig <yahoo-mx> a
In some cases you can find the IP inside the SPF record:
dig <yahoo-mx> txt
Upvotes: 0