dnsqr — query a proxy DNS server using the DNS protocol


dnsqr {t} {fqdn}


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 dig(1) 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


the configuration file consulted by this program and by the C library


a similar tool that makes requests to content DNS servers


a tool that makes direct queries against a content DNS server's database


dnsqr was originally part of Daniel J. Bernstein's djbdns toolset in 1999.


Original code and documentation by Daniel J. Bernstein. Documentation modernizations by Jonathan de Boyne Pollard.