Finding DNS Records for a Domain with Linux

By       
   

Recently a client came to me with a Domain Renewal invoice for their domain name. Before proceeding, I was keen to find out a little more about their on-line presence. Unfortunately, the client wasn't aware of where their email was hosted, their website, etc ... Fortunately, Linux has a nifty tool that can allow you to find these details - dig.

To find all the DNS Records for a domain, you can enter the following command:


dig yahoo.com ANY +noall +answer

This should provide you with the following response:


; <<>> DiG 9.8.1-P1 <<>> yahoo.com ANY +noall +answer
;; global options: +cmd
yahoo.com.     1800   IN   SOA   ns1.yahoo.com. hostmaster.yahoo-inc.com. 2013011701 3600 300 1814400 600
yahoo.com.     172800   IN   NS   ns4.yahoo.com.
yahoo.com.     172800   IN   NS   ns1.yahoo.com.
yahoo.com.     172800   IN   NS   ns6.yahoo.com.
yahoo.com.     172800   IN   NS   ns2.yahoo.com.
yahoo.com.     172800   IN   NS   ns8.yahoo.com.
yahoo.com.     172800   IN   NS   ns3.yahoo.com.
yahoo.com.     172800   IN   NS   ns5.yahoo.com.
yahoo.com.     1800   IN   MX   1 mta6.am0.yahoodns.net.
yahoo.com.     1800   IN   MX   1 mta5.am0.yahoodns.net.
yahoo.com.     1800   IN   MX   1 mta7.am0.yahoodns.net.
yahoo.com.     1800   IN   A   98.138.253.109
yahoo.com.     1800   IN   A   206.190.36.45
yahoo.com.     1800   IN   A   98.139.183.24

... and voila! Now we can identify where our mail is pointing (MX Records) and where our websites are hosted (A Records)!



comments powered by Disqus

About Me

I design & develop software that runs on the Internet. As a qualified analyst, accountant and real estate agent, I can deploy systems that improve performance.

Categories


Warning: DOMDocument::load(https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=andrewsirianni&count=5): failed to open stream: HTTP request failed! HTTP/1.0 410 Gone in /home/andrxvjf/public_etc/templates/rmargin/twitter.tpl.php on line 8

Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=andrewsirianni&count=5" in /home/andrxvjf/public_etc/templates/rmargin/twitter.tpl.php on line 8

Recent Tweets

Follow me: @andrewsirianni




Copyright ©2012 Andrew Sirianni, All Rights Reserved   LinkedIn Profile