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
-
-n
nameserver
Query server namerserver instead of the default name server specified in
/etc/resolve.conf
.-
-t
type
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
-
-
-c
class
Set query class to IN (Internet), CHAOS, HESIOD, or ANY. Default is IN.
-
-r
number
Set number of retries to number.
-
-p
period
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.
Get Mac OS X in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.