Skip to main content
Guides/DNS Records

TXT Records: Understand and Use the Results

Get TXT records including verification entries

EdgeDNS Team·Updated ·6 min read

TXT records: the sticky-note section of DNS

A TXT record is the simplest possible DNS record type: it just holds an arbitrary string of text. There is no defined format, no required structure, and no specific purpose baked into the protocol. TXT records were originally added to DNS in the 1980s for human-readable annotations, like a sticky note attached to a domain. Almost immediately, the rest of the internet started using TXT records for everything except the original purpose. Today, TXT records are how dozens of unrelated systems prove ownership, publish policies, and exchange machine-readable instructions through DNS — including SPF, DKIM, DMARC, BIMI, MTA-STS, ACME challenges (used by Let's Encrypt), and the "prove you own this domain" verification step for every SaaS product on earth.

You should care because the TXT records on your domain accumulate quietly over time and tell a more interesting story than most people realize. Every time someone in your company signed up for a new SaaS tool that needed domain verification — Google Search Console, Atlassian, Zoom, Microsoft 365, Apple Business Manager, every new email service — a new TXT record was added. Many of those records are still there, even after the service was abandoned. Some of them are SPF records that have grown unmaintainable. Some are old, broken DMARC records pointing at email addresses that no longer exist. The TXT section of any production domain is an archaeological dig site of every decision the organization has ever made about email and verifications.

The five things every TXT record check looks at:

  • What records exist? A surprising fraction of organizations have no idea what is in their TXT records until they look.

  • Which records are SPF, DKIM, DMARC, BIMI, or MTA-STS? These are the high-stakes ones — the email-authentication rulebooks.

  • Which records are domain-verification handshakes? Things like `google-site-verification=...`, `MS=ms12345`, or `atlassian-domain-verification=...` are leftover from one-time setup steps and almost always still in production years later.

  • Are there any duplicate or conflicting records? Two SPF records is a permanent error. Two DMARC records is a permanent error. Stale duplicates are surprisingly common.

  • Is the total size reasonable? Each TXT record can be up to 255 characters per string and can have multiple strings, but DNS responses overall have practical size limits. Bloated TXT sections can cause subtle resolver issues.

Three questions a TXT record check answers:

  • What is actually in my domain's TXT records right now, including the records I've forgotten about?

  • Are there any duplicate or conflicting records that are silently breaking SPF or DMARC?

  • Which old verification records can I safely delete because the underlying service is long gone?

The cost of ignoring TXT records is the slow accumulation of cruft until the day a duplicate breaks SPF or DMARC and your email starts going to spam. The fix is an annual cleanup pass — dump the TXT records, identify each one, delete the orphans, and document what's left. It's the kind of DNS hygiene that pays compounding dividends in fewer mystery deliverability problems.

The TXT Records endpoint, in plain language

Get TXT records including verification entries

TXT records are the most overloaded DNS (Domain Name System) record type — a single domain may have 10+ records for different purposes. Categorization saves manual analysis. The DKIM (DomainKeys Identified Mail) selector probe is the most-requested email-deliverability feature gap in DNS tooling: the selector name is sender-specific and unknown without context, so DKIM is invisible to plain `dig`. Stale-ACME detection catches a real hygiene smell that often goes unnoticed. The result is a single call that answers "is this domain's email-auth and zone hygiene in good shape?"

What is actually happening when you call it

Queries all TXT records at the apex and categorizes them: SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), domain verification tokens (Google, Facebook, Microsoft, Apple, Atlassian, DocuSign, Stripe, and 25+ more), DMARC (Domain-based Message Authentication, Reporting and Conformance) at `_dmarc`, BIMI (Brand Indicators for Message Identification) at `default._bimi`, MTA-STS (Mail Transfer Agent Strict Transport Security) at `_mta-sts`, and custom entries. Probes ~30 common DKIM selectors in parallel (`google._domainkey`, `selector1._domainkey`, `s1._domainkey`, `k1._domainkey`, `pm._domainkey`, etc.) and surfaces every selector that returns a `v=DKIM1` record (RFC (Request for Comments) 6376) — the only reliable way to answer "is DKIM configured?" without prior knowledge of the selector name. Detects stale `_acme-challenge` TXT tokens left over from prior ACME (RFC 8555) issuance — a hygiene smell that contributes to zone-hygiene scoring.

Why this specific tool matters

Choose a task: Email Authentication Audit. Review all TXT records to ensure SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and other email security records are properly configured.

Run the TXT Records request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the TXT Records reference to check the field definitions and supported options.

Info:

Available on the free plan. The technical details: `GET /v1/dns/txt`.

When would I actually use this?

Email Authentication Audit

Review all TXT records to ensure SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and other email security records are properly configured.

Use the finding: Identify missing or misconfigured email authentication records before they cause delivery issues.

Third-Party Integration Discovery

Analyze domain verification TXT records to discover all third-party services with domain access — Google Workspace, Microsoft 365, Atlassian, DocuSign, Stripe, and more. Map the external attack surface.

Use the finding: Complete visibility into third-party service integrations without requiring internal documentation.

DNS Cleanup

Identify outdated verification records from discontinued services cluttering DNS (Domain Name System).

Use the finding: Reduce DNS (Domain Name System) complexity and eliminate verification records for discontinued services that could be exploited for subdomain takeover.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use dns_txt with domain=example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For TXT Records, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This TXT Records request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/dns/txt?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for TXT Records

Start with the inputs below. Keep the same hostname, path, and options when comparing TXT Records observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

domain

string

Yes

The domain to query TXT records for

example.com

Interpret TXT Records findings

Read these fields alongside the full response from your TXT Records check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

domain

string

The queried domain

records

array

All TXT records with value, category, TTL (time to live), and verification service

has_spf

boolean

Whether domain has an SPF (Sender Policy Framework) record

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

SPF (Sender Policy Framework) — A list, published in your DNS, of which servers are allowed to send email pretending to be you. Helps stop spammers from forging your address.

DKIM (DomainKeys Identified Mail) — A digital signature added to every email you send. The receiving mail server checks the signature to make sure the message really came from you and was not changed in transit.

DMARC (Domain-based Message Authentication, Reporting and Conformance) — An email rulebook you publish in your DNS. It tells receiving servers what to do with email that fails SPF or DKIM checks — ignore it, send it to spam, or block it entirely.

BIMI (Brand Indicators for Message Identification) — A standard that lets your company logo appear next to your emails in supported inboxes — but only after you've already set up DMARC properly.

MTA-STS (Mail Transfer Agent Strict Transport Security) — A way to tell other mail servers "always use encryption when sending email to me, and refuse to fall back to unencrypted delivery."

RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

TXT Records: Results Guide | EdgeDNS