Domains & DNS

What Is a TXT Record?

TXT records explained for beginners, including domain verification, SPF, DKIM, DMARC, email security and common DNS uses.

TXT records are a type of DNS record used to store text-based information about a domain. They are commonly used for domain verification, email authentication and security configuration across modern websites.

This guide explains what TXT records are, how they work and why they are important for website owners, businesses and anyone managing email or DNS settings.

TXT records are often used alongside SPF, DKIM and DMARC to help protect email systems and confirm domain ownership with services such as Google, Microsoft and email providers.

Quick Summary

TXT records store verification and configuration data used by email services and domain providers to validate ownership and improve security.

  • Used for domain verification (Google, Microsoft, etc.)
  • Supports email authentication systems (SPF, DKIM, DMARC)
  • Helps prove ownership of a domain
  • Stored in DNS as plain text records
  • Essential for modern email security and deliverability

What is a TXT record?

A TXT (Text) record is a DNS entry that allows domain owners to store simple text information within their domain settings. While originally designed for general notes, TXT records are now widely used for verification and security purposes.

When a service needs to confirm that you own a domain, it may ask you to add a TXT record. Once added, the service checks your DNS to confirm the record exists before granting access or enabling features.

What TXT records are used for

TXT records are used in several important areas of website and email management:

How TXT records work

When a system queries your domain, it checks the DNS records associated with it. If a TXT record exists, the system reads the value and uses it for verification or configuration purposes.

For example, a service may ask you to add a specific TXT record such as a verification string. Once added, it periodically checks your DNS until the record is detected, confirming that you control the domain.

This process is fully automatic and happens in the background whenever services need to validate domain ownership or email setup.

TXT records and email security

One of the most important uses of TXT records is email authentication. They support systems like:

Without correctly configured TXT records, emails are more likely to be marked as spam or rejected by providers such as Gmail, Outlook and Yahoo.

Common TXT record examples

Use case Example
Google verification google-site-verification=example12345
SPF record v=spf1 include:_spf.google.com ~all
DKIM record k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFA...
DMARC record v=DMARC1; p=quarantine; rua=mailto:reports@example.com

Common mistakes with TXT records

Small DNS mistakes can lead to email delivery issues or failed verification, so changes should always be made carefully and tested afterwards.

How to check TXT records

You can view and manage TXT records through your domain registrar or DNS provider. Most platforms include a DNS management section where records can be added, edited or removed.

After making changes, DNS propagation may take anywhere from a few minutes to 48 hours. Tools such as DNS lookup services can help confirm whether changes have been applied correctly.

When you should review TXT records

You should check your TXT records when:

Final thoughts

TXT records are a small but essential part of DNS that play a major role in domain verification, email security and service integration.

When configured correctly, they help improve trust, protect your domain from misuse and ensure emails are delivered reliably.

For most website owners, the key is not to overcomplicate things β€” just ensure your TXT records are correct, up to date and aligned with the services you use.

Frequently Asked Questions

What is a TXT record?

A TXT record is a DNS record used to store text-based information about a domain, often for verification, security and email configuration.

What are TXT records used for?

They are commonly used for domain verification, email authentication (SPF, DKIM, DMARC) and connecting third-party services.

Why are TXT records important?

They help prove domain ownership, improve email deliverability and prevent unauthorised use of your domain.

Do TXT records affect email delivery?

Yes. Incorrect or missing TXT records can cause emails to be marked as spam or rejected by providers like Gmail or Outlook.

Where do I add TXT records?

TXT records are added in your domain registrar or DNS provider control panel, usually in the DNS management section.

How long do TXT record changes take?

Changes can take from a few minutes up to 24–48 hours depending on DNS propagation and TTL settings.

What happens if a TXT record is wrong?

Services may fail to verify your domain, email authentication can break, and some emails may not be delivered properly.

Can I have multiple TXT records?

Yes, but each must serve a different purpose. For SPF specifically, only one SPF record should exist per domain.

Do TXT records improve security?

Yes. They help prevent domain spoofing and support authentication systems that protect your email and online identity.

Do I need TXT records for my website?

Most websites use TXT records for verification or email setup, especially if using Google Workspace, Microsoft 365 or marketing tools.