Jump to content

Tip for DNS


G+_James Coleman
 Share

Recommended Posts

Tip for DNS.

 

If you want to query DNS responses, rather than using ping... You should use the command dig in unix/linux systems.

 

Example: dig google.com

;; ANSWER SECTION:

google.com.        274    IN    A    74.125.21.102

google.com.        274    IN    A    74.125.21.113

google.com.        274    IN    A    74.125.21.101

google.com.        274    IN    A    74.125.21.100

google.com.        274    IN    A    74.125.21.139

google.com.        274    IN    A    74.125.21.138

 

As you can see, Google has many IP Addresses they return and your computer chooses one of them to talk to. You would not know that Google has all of those IP Addresses if you just used ping.

 

You can also query for AAAA, MX, TXT, and other record types to see what the response is. A = IPv4 Address, AAAA = IPv6 Address, MX = Mail eXchange record, and TXT = Text record. You can Google for "DNS Records" to find out more about the different record types.

 

Maybe Know How can point this out in the next episode to give people more information about DNS.

Link to comment
Share on other sites

Lee Ball Thank you for that command, I so hate how windows is as I couldn't figure out how to get help on that command...

 

To get another record type, such as mx, it's nslookup -type=mx google.com

 

Had to google for help, when on unix/linux it's just -h, --help, or manpages, found out later on nslookup has an interactive mode which you can type help in to get help.

Link to comment
Share on other sites

 Share

×
×
  • Create New...