Skip to content

Instantly share code, notes, and snippets.

@nodesocket
Created July 18, 2017 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodesocket/29c7e30dff4658f3b0d342a4a5d6e525 to your computer and use it in GitHub Desktop.
Save nodesocket/29c7e30dff4658f3b0d342a4a5d6e525 to your computer and use it in GitHub Desktop.
Get e-mail provider for a domain
# get mx records for a domain
iMac ➜ ~ host -t MX elasticbyte.net
elasticbyte.net mail is handled by 1 aspmx.l.google.com.
elasticbyte.net mail is handled by 10 aspmx2.googlemail.com.
elasticbyte.net mail is handled by 10 aspmx3.googlemail.com.
elasticbyte.net mail is handled by 5 alt1.aspmx.l.google.com.
elasticbyte.net mail is handled by 5 alt2.aspmx.l.google.com.
# lookup ip of the first mx record
iMac ➜ ~ dig +short aspmx.l.google.com
74.125.28.26
# query ASN information for that ip
iMac ➜ ~ whois -h whois.cymru.com " -v 74.125.28.26"
AS | IP | BGP Prefix | CC | Registry | Allocated | AS Name
15169 | 74.125.28.26 | 74.125.28.0/24 | US | arin | 2007-03-13 | GOOGLE - Google Inc., US
####
# GOOGLE - Google Inc., US
####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment