dig = Domain Info Groper
$ dig google.com
....
->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62863
QUESTION SECTION : Your input here
....
ANSWER SECTION : Answer received from the DNS
....
AUTHORITY SECTION : DNS (available) name servers that have authority to respond to this query
....
ADDITIONAL SECTION : Address of name servers listed in the AUTHORITY SECTION
....
Stats SECTION : Statistics including how much time it took to execute this querySwitches to turn off the sections+nocomments – Turn off the comment lines+noauthority – Turn off the authority section+noadditional – Turn off the additional section+nostats – Turn off the stats section+noanswer – Turn off the answer section+noall - Turn off all the sectionsExample : $ dig google.com +noall +answer
View short output - just the IP address of a web site
$ dig redhat.com +short 209.132.183.81
No comments:
Post a Comment
Note: only a member of this blog may post a comment.