Search all pages
Professions, Sciences, Humanities, Business, ...
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Conversions, tests, processing, manipulation,...
Integer, Floating point, Matrix, Statistics, Boolean, ...
Algorithms, Memory, Process control, Debugging, ...
Data storage, Integrity, Encryption, Compression, ...
Networks, protocols, Interprocess, Remote, Client Server, ...
Timing, Calendar and Clock, Audio, Video, Printer, Controls...
Management, Filtering, File & Directory access, Viewers, ...
RocketLink!--> Man page versions:
dnsquery - query domain name servers using resolver
dnsquery [-n nameserver] [-t type] [-c class] [-r retry]
[-p retry_period] [-d] [-s] [-v] host
The dnsquery program is a general interface to nameservers
via BIND resolver library calls. The program supports
queries to the nameserver with an opcode of QUERY. This
program is intended to be a replacement or supplement to
programs like nstest, nsquery and nslookup. All arguments
except for host and ns are treated without case-sensitiv-
-n The nameserver to be used in the query. Name-
servers can appear as either Internet addresses
of the form w.x.y.z or can appear as domain
names. (default: as specified in
-t The type of resource record of interest. Types
CNAME canonical name
PTR domain name pointer
SOA start of authority
WKS well-known service
HINFO host information
MINFO mailbox information
MX mail exchange
RP responsible person
MG mail group member
DCE or AFS server
Note that any case may be used. (default: ANY)
-c The class of resource records of interest.
Note that any case may be used. (default: IN)
-r The number of times to retry if the nameserver
10 March 1990 1
is not responding. (default: 4)
-p Period to wait before timing out. (default:
-d Turn on debugging. This sets the RES_DEBUG bit
of the resolver's options field. (default: no
-s Use a stream rather than a packet. This uses a
TCP stream connection with the nameserver rather
than a UDP datagram. This sets the RES_USEVC
bit of the resolver's options field. (default:
-v Synonym for the 's' flag.
host The name of the host (or domain) of interest.
/etc/resolv.conf to get the default ns and search lists
<arpa/nameser.h> list of usable RR types and classes
<resolv.h> list of resolver flags
nslookup(1), nstest(1), nsquery(1), named(8), resolver(3)
If the resolver fails to answer the query and debugging
has not been turned on, dnsquery will simply print a mes-
Query failed (rc = 1) : Unknown host
The value of the return code is supplied by h_errno.
Queries of a class other than IN can have interesting
results since ordinarily a nameserver only has a list of
root nameservers for class IN resource records.
Query uses a call to inet_addr() to determine if the argu-
ment for the '-n' option is a valid Internet address.
Unfortunately, inet_addr() seems to cause a segmentation
fault with some (bad) addresses (e.g. 126.96.36.199.5).
10 March 1990 2
Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.
(Corrections, notes, and links courtesy of RocketAware.com)
FreeBSD Sources for dnsquery(1)
OpenBSD sources for dnsquery(1)
Up to: Host, service name, and address operations - Methods and functions for doing address, host, user, and service name lookups (DNS). also Internet Assigned Numbers
RocketLink!--> Man page versions:
Search | About | Comments | Submit Path: RocketAware >
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments