Command that every Administrator shoud know [Dig command]

DIG(Domian information groper)

It is a DNS lookup utility.
It ping's DNS name servers.It performs DNS lookups and displays the answers that are returned from the name Server(s).
It is a flexible command so many admin's use it.

Unless explictly specified dig will try to get servers listed in

/etc/resolv.conf


Simple usage

dig @server name type


server:
It is name or ip address of the name server to query.
If no server argument is provided, dig consults /etc/resolv.conf and queries the name servers listed there

name:
It is the name of the resource record that is to be looked up.
type:
indicates what type of query is required - ANY, A, MX, SIG, etc. type can be any valid query type. If no type argument is supplied, dig will perform a lookup for an A record.

No comments: