Background

The 'TXT' Resource Record (RR) is standarized in RFC 1035 and provides the ability to store arbitrary text with a name.


Details

RR Type: TXT
ID: 16 (0x0010)
Defining RFC: RFC 1035,  Section 3.3.14,  Page 20
Description: Text Record
Function: Originally for arbitrary human-readable text in a DNS record. Since the early 1990s, however, this record more often carries machine-readable data, such as specified by RFC 1464, opportunistic encryption, Sender Policy Framework, DKIM, DMARC, DNS-SD, etc.
Status: Active

'TXT' RR Syntax

name ttl class type rdata {txt-data}

RR Field Example Description
name The name of the node to which this resource record pertains.

Blank Name - A record that has nothing in the 'name' field gets used for all requests being made to the base domain such as yourdomain.com. (Same as Parent)
ttl This is the records time to live value (in seconds). If there is no TTL specified, the zone's default $TTL Directive will be used.
type TXT Specifies the RDATA field will contain data in the TXT RDATA format.
class IN Specifies the class to be 'Internet'.
rdata txt-data "v=spf1 -all" This is an Sender Policy Framework syntax that states 'The domain sends no mail at all.'

Examples

Snippets from a fictitious forward lookup 'yourdomain.com' zone file

Typical 'TXT' Record Entry

;
;   Zone records
;
IN TXT "v=spf1 -all"


See Also




This content was last updated on December 11, 2020
An error has occurred. This application may no longer respond until reloaded. Reload 🗙