Name

dnstxt — look up the text records of a domain name

Synopsis

dnstxt {fqdn...}

Description

dnstxt looks up the TXT resource records for fqdn in the Domain Name System, and prints them. If there are no TXT resource records, dnstxt prints a blank line.

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

dnstxt 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) fqdn. See djbdns-client(5) for how this server is found, and for certain standard domain names that short-circuit DNS lookups to the proxy DNS server(s).

History

dnstxt 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.