Query domain for SMTP address

  • Thread starter Thread starter Roger
  • Start date Start date
R

Roger

Is there a way to query a domain for smtp server? For instance, I am
sending mail to (e-mail address removed), I want to contact smtp server at
microsoft.com but smtp server is subdomain of microsoft.com, which I am
unaware of. When I perform Dns.Resolve on microsoft.com, i don't get ip of
smtp server. How can I get ip of smtp.microsoft.com?
 
I don't know how to use dns.resolve, but.....


using nslookup:

set type=mx

does the trick. I suspect it's something similar.
 
Back
Top