Command line for dummies – domains

Using the dig command:

$ dig iamgabrielma.com

Response:

“`
iamgabrielma.com. 271 IN A 192.0.78.24
iamgabrielma.com. 271 IN A 192.0.78.25

“`

Returns the A record/IP address where the domain is pointing at.

 dig iamgabrielma.com NS 

Response:

“`
iamgabrielma.com. 108002 IN NS ns2.wordpress.com.
iamgabrielma.com. 108002 IN NS ns1.wordpress.com.
iamgabrielma.com. 108002 IN NS ns3.wordpress.com.

“`

Returns the name servers where the domain is pointing at.

Other examples:

$ dig iamgabrielma.com MX
$ dig iamgabrielma.com ANY

Example of checking a .blog domain using whois command:

$ whois -h whois.nic.blog mydomain.blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s