SPF (which servers may send mail for your domain)
- What the record looks like
example.com. TXT "v=spf1 +mx a:colo.example.com/28 -all"- Source
- RFC 7208 says SPF records MUST be published as a DNS TXT record
A TXT record is a DNS record that holds text for a domain. See what it's used for, such as SPF and Search Console verification, with examples and common mistakes.
A TXT record is a DNS resource record that holds text for a domain name. RFC 1035 says TXT records "are used to hold descriptive text" and that the meaning of the text depends on the domain where it is found. Common uses today include proof of domain ownership and email authentication settings such as SPF and DKIM.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
DNS maps names to data. An A record maps a name to an IP address and an MX record names a mail server. A TXT record maps a name to free-form text. RFC 1035 defines its data as one or more character strings, and says the semantics of the text depend on the domain where it is found.
Because DNS has no built-in meaning for that text, other systems agree on formats and put them there. RFC 1464 describes one such convention, an attribute name and value separated by an equals sign, as in "printer=lpr5". Cloudflare's docs describe the content as one or more text strings delimited by double quotes.
example.com. TXT "v=spf1 +mx a:colo.example.com/28 -all"selector._domainkey.example.com_domainkeyexample.com, not URL-prefix properties. Here is the flow Google documents.Google tells you to pick CNAME instead when a CNAME record is found at the domain whose target is a parent domain of the one you entered. If no CNAME record is found, which Google calls the most common case, use TXT. See Google Search Console for what the verified property unlocks.
When verifying your Domain property, choose TXT for the record type. Search Console gives you a string value to use.
In your domain provider's DNS records, create a TXT record. Google says to leave the Host/Name blank or set it to "@", as your provider's documentation describes, and to paste the Search Console string as the Value.
Click Verify in Search Console. Google says manually installed records can take up to two or three days for your provider to start serving, so if it fails, wait a day or two and try again.
RFC 7208 says a domain must not have multiple records that would cause an SPF check to select more than one. Merge them into a single v=spf1 record.
A single string is capped at 255 octets. Per RFC 7208, a record may contain several quoted strings, which are concatenated without spaces, so long values are split into pieces. Most DNS dashboards do this for you.
Cloudflare warns that mismatched double quotes cause a validation error. If you save TXT content without quotes there, it adds them.
RFC 7208 advises keeping the SPF record small enough that the query result fits in 512 octets, and notes that other TXT records at the same name count toward the reply size.
Google says that to stay verified, don't remove the DNS record from your provider, even after verification succeeds.
Query the name where the record should live. SPF and verification strings sit at the domain itself, and DKIM keys sit under _domainkey.
dig +short TXT example.com
dig +short TXT selector._domainkey.example.com4 questions people ask next, answered from the sources on this page.
To attach text to a domain name. Common uses are SPF and DKIM email authentication, domain ownership verification for services like Google Search Console, and proving control of a domain before a certificate is issued.
A CNAME makes one name an alias of another name. A TXT record holds text and points nowhere. Google's Search Console flow accepts either as a verification method: use CNAME if a CNAME exists whose target is a parent domain of your domain, and TXT otherwise.
Yes. Many services each add their own. The exception is SPF: RFC 7208 does not allow multiple records at one name that an SPF check would select.
Each character string in the record can be up to 255 octets. RFC 7208 explains that a record with several strings is read as one concatenated value, which is how longer text is stored.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.