Name
dnsquery
Synopsis
dnsquery [options]host
Queries Internet domain name servers. A simpler alternative to
nslookup, dnsquery displays
information about host as returned by the
default or a specified name server.
Options
-
-nnameserver Query server
namerserverinstead of the default name server specified in/etc/resolve.conf.-
-ttype Change type of information returned from a query to one of the following:
-
A Host’s Internet address
-
AFSDB DCE or AFS server
-
ANY Any available information (default)
-
CNAME Canonical name for an alias
-
HINFO Host CPU and operating system type
-
MG Mail group member
-
MINFO Mailbox or mail list information
-
MX Mail exchanger
-
NS Nameserver for the named zone
-
PTR Hostname or pointer to other information
-
RP Responsible person
-
SOA Domain start-of-authority
-
WKS Supported well-known services
-
-
-cclass Set query class to
IN(Internet),CHAOS,HESIOD, orANY. Default isIN.-
-rnumber Set number of retries to
number.-
-pperiod Set seconds to wait before retries to
period.-
-d Turn on debugging mode.
-
-s,-v Connect with the name server using a TCP stream rather than a UDP datagram, the default.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access