[dig, whois] Domain records

Registration details

whois domain.com will return domain registration details for domain.com, including when it was registered, who registered it, when it was created and who is the contact.

dig is another useful command. You can use the dig +short to only list values.

Name Servers

whois aamnah.com | grep -i --color "Name Server:"

OR

dig NS aamnah.com

cmd-dig-ns

NS, TXT, MX, SOA, SPF records

You can either pass the record as an argument

dig MX aamnah.com

dig MX aamnah.com

or use grep to find it in the output of dig

dig aamnah.com | grep --color "MX"

cmd-dig-mx

cmd-dig.png

Get technical contact for a domain

whois espn.com | grep -i --color "Tech Name:\|Tech Phone:\|Tech Email:"

cmd-whois-2

Creation and Expiry dates

whois espn.com | grep -i --color "Creation date:\|Expiration date:"

cmd-whois