<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="dnstxt">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>dnstxt</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">djbwares</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>dnstxt</refname>
<refpurpose>look up the text records of a domain name</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>dnstxt</command>
<arg choice='req' rep='repeat'><replaceable>fqdn</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection>
<title>Description</title>

<para>
<command>dnstxt</command> looks up the <code>TXT</code> resource records for <replaceable>fqdn</replaceable> in the Domain Name System, and prints them.
If there are no <code>TXT</code> resource records, <command>dnstxt</command> prints a blank line.
</para>

<para>
Normally <command>dnstxt</command> exits 0. 
If it encounters a temporary problem that prevents it from determining the <code>TXT</code> resource records, it prints an error message and exits 111.
</para>

<para>
<command>dnstxt</command> makes all DNS lookups using the locally configured DNS proxy server(s), and performs no name qualification on what is taken to already be a "fully-qualified" domain name (trailing dot or no) <replaceable>fqdn</replaceable>.
See <citerefentry><refentrytitle>djbdns-client</refentrytitle><manvolnum>5</manvolnum></citerefentry> for how this server is found, and for certain standard domain names that short-circuit DNS lookups to the proxy DNS server(s).
</para>

</refsection>

<refsection>
<title>History</title>
<para>
<command>dnstxt</command> was originally part of <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>'s djbdns toolset in 1999.
</para>
</refsection>

<refsection>
<title>Author</title>
<para>
Original code and documentation by <personname><firstname>Daniel</firstname> <othername>J.</othername> <surname>Bernstein</surname></personname>.
Documentation modernizations by <personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname>.
</para>
</refsection>

</refentry>
