dq - DNS/DNSCurve query tool
Contents
Description
dq is commandline tool derived from dnsq / dnsqr (https://cr.yp.to/djbdns/debugging.html)
dq asks for records of type type under the domain name fqdndq-a sends a non-recursive DNS/DNSCurve query to DNS/DNSCurve server host for records of type type
under the domain name fqdnEnvironment
DNSCACHEIP
use IP address $DNSCACHEIP instead of 'nameserver' lines from /etc/resolv.confLOCALDOMAIN
use space separated names from $LOCALDOMAIN instead of 'search' line from /etc/resolv.confDNSREWRITEFILE
use $DNSREWRITEFILE file instead of /etc/dnsrewrite
Name
dq - DNS/DNSCurve query tool
Notes
dq rewrites IP address to *.in-addr.arpa or *.ip6.arpa for PTR queries e.g.:
127.0.0.1 -> 1.0.0.127.in-addr.arpa
::1 -> 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
Options
-v print extra information
-r send recursive query (default)
-a send authoritative query
-u use UDP (default)
-t use TCP
-s send DNSCurve query in streamlined format (default), ignored for regular DNS queries
-Ssuffix
send DNSCurve query in TXT format using suffix suffix, ignored for regular DNS queries
-Ttimeout
give up on the DNS/DNSCurve query attempt after timeout seconds <1-60> (default 60)
-pport
send query to port port (default 53)
-kkey send DNSCurve query and use servers public-key keytype DNS query type (A, NS, MX, ANY, PTR, TXT, SOA, SRV, AAAA, AXFR, CNAME or numeric type)
fqdn fully qualified domain name
host DNS server (hostname or IP address)
Recursive Examples
dq any dnscurve.cz
dq any dnscurve.cz 8.8.8.8
env DNSCACHEIP=8.8.8.8 dq any dnscurve.cz
dq ptr 1.0.0.127.in-addr.arpa
dq ptr 127.0.0.1
dq ptr ::1
dq ptr 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa
See Also
dnsq(1), dnsqr(1), dqcache(8) https://mojzis.com/software/dq https://dnscurve.org/ https://cr.yp.to/djbdns/debugging.html dq(1)
Synopsis
dq [ options ] typefqdn [ host ]
dq-a [ options ] typefqdnhost