dnsqr
1
user commands
djbwares
dnsqr
query a proxy DNS server using the DNS protocol
dnsqr
t
fqdn
Description
dnsqr looks up resource records of type t for fqdn by making a Domain Name System request to the configured local proxy DNS server(s).
It prints the results in a human-readable format, more compact than the dig1 output format.
It expects to query a proxy DNS server, and the request is marked as recursive.
t may be a name or a number.
Currently recognized names are:
any
,
a
,
ns
,
mx
,
ptr
,
txt
,
cname
,
soa
,
hinfo
,
rp
,
sig
,
key
,
aaaa
,
axfr
, and
srv
.
Configuring the location of the local proxy DNS server
The local proxy DNS server is configured in /etc/resolv.conf.
This can be overridden with the DNSCACHEIP environment variable, whose value comprises a list of whitespace-separated IP addresses.
See also
resolv.conf5
the configuration file consulted by this program and by the C library
dnsq1
a similar tool that makes requests to content DNS servers
tinydns-get1
a tool that makes direct queries against a content DNS server's database
History
dnsqr was originally part of Daniel J. Bernstein's djbdns toolset in 1999.
Author
Original code and documentation by Daniel J. Bernstein.
Documentation modernizations by Jonathan de Boyne Pollard.