summaryrefslogtreecommitdiff
path: root/doc/s6-dnsqr.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-10 03:05:47 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-10 03:05:47 +0000
commit416ef5e2bf59bb2e45066a1d5d91ac677c0f48e5 (patch)
tree1c746d673dcec7a8488c6ac51db8245411034376 /doc/s6-dnsqr.html
downloads6-dns-416ef5e2bf59bb2e45066a1d5d91ac677c0f48e5.tar.xz
Initial commit
Diffstat (limited to 'doc/s6-dnsqr.html')
-rw-r--r--doc/s6-dnsqr.html80
1 files changed, 80 insertions, 0 deletions
diff --git a/doc/s6-dnsqr.html b/doc/s6-dnsqr.html
new file mode 100644
index 0000000..ce308bd
--- /dev/null
+++ b/doc/s6-dnsqr.html
@@ -0,0 +1,80 @@
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Content-Language" content="en" />
+ <title>s6-dns: the s6-dnsqr program</title>
+ <meta name="Description" content="s6-dns: the s6-dnsqr program" />
+ <meta name="Keywords" content="s6-dns client s6-dnsqr dnsqr analysis debug" />
+ <!-- <link rel="stylesheet" type="text/css" href="http://skarnet.org/default.css" /> -->
+ </head>
+<body>
+
+<p>
+<a href="index.html">s6-dns</a><br />
+<a href="http://skarnet.org/software/">Software</a><br />
+<a href="http://skarnet.org/">skarnet.org</a>
+</p>
+
+<h1> The s6-dnsqr program </h1>
+
+<p>
+ s6-dnsqr is an analysis and debug tool. It performs a DNS resolution,
+then prints the contents of the answer packet, and optionally debug
+information during the resolution.
+</p>
+
+<h2> Interface </h2>
+
+<pre>
+ s6-dnsqr [ -1 | -2 ] [ -t <em>timeout</em> ] [ -D <em>level</em> ] <em>qtype</em> <em>domain</em>
+</pre>
+
+<ul>
+ <li> s6-dnsqr makes a recursive DNS query of type <em>qtype</em> for the name <em>domain</em>.
+It prints the answer packet, in human-readable form, to its standard output,
+then exits 0. </li>
+ <li> It does not qualify <em>domain</em>. </li>
+ <li> If the resolution fails for some reason, s6-dnsqr exits 2. </li>
+ <li> By default, s6-dnsqr looks for DNS cache addresses in the
+<tt>/etc/resolv.conf</tt> file. If the DNSCACHEIP environment variable is set
+and contains a list of IP (v4 or v6) addresses, separated by commas,
+semicolons, spaces, tabs, newlines or carriage returns, then this list
+is used instead. </li>
+</ul>
+
+<h2> Options </h2>
+
+<ul>
+ <li> <tt>-1</tt>&nbsp;: send debug information to stdout. </li>
+ <li> <tt>-2</tt>&nbsp;: send debug information to stderr. This is the default. Not that
+those options only apply to debug output, not to the regular packet dump, which
+is always printed to stdout. </li>
+ <li> <tt>-t</tt>&nbsp;<em>timeout</em>&nbsp;: if the resolution takes more
+than <em>timeout</em> milliseconds, then it exits 99 right away with an error
+message. By default, <em>timeout</em> is 0, which means no timeout. </li>
+ <li> <tt>-D</tt>&nbsp;<em>level</em>&nbsp;: produce debug output during
+resolution. If <em>level</em> is:
+ <ul>
+ <li> 0: no debug output is produced </li>
+ <li> 1: information is printed when s6-dnsqr receives a DNS packet from a cache </li>
+ <li> 2: information is printed before and after s6-dnsqr sends a DNS packet to a cache </li>
+ <li> 3: both 1. and 2. apply </li>
+ </ul>
+
+</ul>
+
+<h2> Notes </h2>
+
+<ul>
+ <li> TXT records are printed in a quoted form similar to
+<a href="http://skarnet.org/software/s6-portable-utils/s6-quote.html">s6-quote</a>'s
+output. </li>
+ <li> If s6-dnsqr finds a record it cannot print, such as an unknown RR type,
+it dumps its content in the same quoted form. </li>
+ <li> The normal output format should be stable, so you can write programs that
+automatically parse it. However, the debug output format is undocumented and subject
+to change. </li>
+</ul>
+
+</body>
+</html>