Randall

The command used to request the name and address information from a DNS server is dig. The syntax for the dig command is as follows:

dig [options]

The options that can be used with the dig command are as follows:

-a

This option prints the entire answer to the query.

-c

This option prints the addresses of the records that match the query.

-x

This option prints the name of the domain or host that owns the record that matches the query.

-p

This option prints the port number of the server on which the DNS server is running.

-h

This option prints the help message for the dig command.