---
title: "How to Create a TXT Record and Add It to DNS | DMARC Report"
description: "In today’s digital world, websites and email domains rely on the Domain Name System (DNS) to connect infrastructure, prove ownership, and secure communications."
image: "https://dmarcreport.com/og/blog/how-to-create-a-txt-record-and-add-it-to-dns.png"
canonical: "https://dmarcreport.com/blog/how-to-create-a-txt-record-and-add-it-to-dns/"
---

Quick Answer

In today’s digital world, websites and email domains rely on the \[Domain Name System (DNS)\](https://www.coursera.org/in/articles/domain-name-system) to connect infrastructure, prove ownership, and secure communications. One of the most versatile tools in the DNS toolbox is the TXT record - a simple yet powerful type of DNS entry that carries text information used for domain verification, \[email authentication\](https://dmarcreport.com/blog/why-email-security-matters-and-how-to-get-it-right/), and security policies.

Related: [Free DMARC Checker](/tools/dmarc-checker/) ·[How to Create an SPF Record](/tools/spf-record-generator/) ·[SPF Record Format](/blog/spf-format-checker-dos-and-donts-for-email-authentication/) 

Share 

[ ](https://www.linkedin.com/sharing/share-offsite/?url=undefined%2Fblog%2Fhow-to-create-a-txt-record-and-add-it-to-dns%2F "Share on LinkedIn") [ ](https://twitter.com/intent/tweet?text=How%20to%20Create%20a%20TXT%20Record%20and%20Add%20It%20to%20DNS&url=undefined%2Fblog%2Fhow-to-create-a-txt-record-and-add-it-to-dns%2F "Share on X/Twitter") [ ](https://www.facebook.com/sharer/sharer.php?u=undefined%2Fblog%2Fhow-to-create-a-txt-record-and-add-it-to-dns%2F "Share on Facebook") [ ](https://reddit.com/submit?url=undefined%2Fblog%2Fhow-to-create-a-txt-record-and-add-it-to-dns%2F&title=How%20to%20Create%20a%20TXT%20Record%20and%20Add%20It%20to%20DNS "Share on Reddit") [ ](mailto:?subject=How%20to%20Create%20a%20TXT%20Record%20and%20Add%20It%20to%20DNS&body=Check out this article: undefined%2Fblog%2Fhow-to-create-a-txt-record-and-add-it-to-dns%2F "Share via Email") 

![How to Create a TXT Record and Add It to DNS](https://media.mailhop.org/dmarcreport/images/2022/04/dmarc-record-6071.jpg) 

In today’s digital world, websites and email domains rely on the [Domain Name System (DNS)](https://www.coursera.org/in/articles/domain-name-system) to connect infrastructure, prove ownership, and secure communications. One of the most versatile tools in the DNS toolbox is the TXT record - a simple yet powerful type of DNS entry that carries text information used for domain verification, [email authentication](https://dmarcreport.com/blog/why-email-security-matters-and-how-to-get-it-right/), and security policies.

> The most common mistake we see during DMARC setup is jumping straight to p=reject without monitoring first, says Vasile Diaconu, Operations Lead at DuoCircle. Start at p=none, analyze your reports for at least a full quarter - you need to catch monthly, quarterly, and annual email senders that only fire periodically. Then fix any legitimate senders that fail before enforcing. We walk every customer through this sequence.

In this guide, you’ll learn what a TXT record is, why it matters for **email and web security**, and step-by-step instructions to create and publish one in DNS. By the time you’re done, you’ll have a firm understanding of TXT records and how to use them to strengthen your domain’s online presence .

## What Is a DNS TXT Record?

A \*\*TXT record is a type of [DNS record](https://www.cloudflare.com/learning/dns/dns-records/) that allows domain administrators to store text information in the DNS. Unlike other DNS records - such as A records (which map domain names to IP addresses) - TXT records can hold readable text that may be interpreted by humans, machines, or both.

Originally, TXT records were intended for free-form notes. Over time, they have become essential for domain ownership verification and email authentication, especially when configuring protocols like SPF, DKIM, and DMARC. Because DNS was not designed to store massive amounts of text, TXT records typically have size limits. Most DNS services enforce a **255-character maximum per string**, though larger values can be split into multiple quoted strings that DNS will join together.

## Why TXT Records Matter

## 1\. Verify Domain Ownership

Many online services - from Google Workspace and Office 365 to web-monitoring tools - ask you to prove you control your domain. A common way to do this is by asking you to add a specific [TXT record](https://en.wikipedia.org/wiki/TXT%5Frecord) to DNS. When the service checks DNS and sees that text, it confirms you own the domain.

![Dmarc record](https://media.mailhop.org/dmarcreport/images/2026/01/dmarc-record-0903.jpg) 

## 2\. Power Email Security Protocols

TXT records are the foundation of major email authentication standards:

- **SPF (Sender Policy Framework)** lists which email servers are permitted to send mail on behalf of your domain.
- **DKIM (DomainKeys Identified Mail)** public keys live in TXT records to help email systems verify signatures on outgoing messages.
- **DMARC (Domain-based Message Authentication, Reporting & Conformance)** tells receiving [mail servers](https://www.activecampaign.com/glossary/mail-server) what to do when incoming emails fail SPF or DKIM checks.

These protocols dramatically reduce spoofing, phishing, and spam abuse. Without correct TXT records, legitimate email from your domain may be flagged as suspicious or fail to deliver entirely.

## What Is TXT Record Structure?

A typical TXT record consists of three fields:

- **Host/Name**: The part of your domain the TXT record applies to (e.g., dmarc, @, or a subdomain).
- **Type**: Always “TXT” for this record type.
- **Value**: The text content itself - whether a verification code or a protocol policy.
- **TTL (Time to Live)**: How long DNS resolvers cache the record before refreshing it. For example:

Host/Name: @

Type: TXT

Value: “This is a human-readable note.”

TTL: 3600

When used for email authentication, the \*\*value field must follow a precise syntax that the receiving [email servers](https://www.axigen.com/articles/what-is-an-email-server%5F107.html) can interpret correctly. For instance, a simple DMARC record might look like:

“v=DMARC1; p=none; rua=mailto:[reports@yourdomain.com](mailto:reports@yourdomain.com)”

In this example:

- v=DMARC1 declares the protocol version.
- p=none tells receivers not to reject emails that fail checks, but to report them.
- rua=mailto: designates where aggregate DMARC reports should be sent.
![Dmarc check](https://media.mailhop.org/dmarcreport/images/2026/01/dmarc-check-0903.jpg) 

## How to Create a TXT Record (General Steps)

Before you dive into any DNS dashboard, it’s useful to understand the core pieces you’ll interact with:

- **Log in to your DNS provider’s control panel. - Navigate to the section where DNS records are managed** (often called DNS Management, DNS Zone Editor, or Advanced DNS).
- Choose to create a new record and select _TXT_ as the record type.
- Fill in the Host/Name, Value, and TTL fields as required by your use case.
- Save or publish the record and wait for [DNS propagation](https://gcore.com/learning/what-is-dns-propagation-how-it-works).

Let’s expand on that with clear, actionable instructions:

## Step-by-Step: Adding a TXT Record to DNS

## Step 1: Identify Your DNS Hosting Provider

If you’re unsure where your DNS is managed, use a WHOIS lookup to find your domain’s nameservers. These typically point to the company that hosts your DNS. Once identified, log into their control panel.

## Step 2: Find Your DNS Zone Editor

Once logged in, look for the DNS settings or advanced controls section . This is where all your domain’s resource records are listed - A, MX, [CNAME](https://www.techtarget.com/searchwindowsserver/definition/canonical-name), and TXT among them.

## Step 3: Create the TXT Record

- Click on “Add Record” or a similar button.
- Choose \*\*TXT from the list of record types.
- Decide what you want to put in the \*\*Host/Name field. For email authentication, this could be:
- dmarc for a DMARC policy  
- @ to place the record at the root domain  
- A service-specific **host name for verification**  
- Enter the **Value** \- whether that’s a text note, a verification token, or a formatted email policy like SPF or DMARC.  
- Set a reasonable **TTL** (common values are 3600 to 86400).  
## Step 4: Save and Publish  
After creating the record, save your changes. _It may take anywhere from a few minutes up to 72 hours for the record to propagate worldwide, depending on DNS caching and TTL values_.  
![How to create dmarc record](https://media.mailhop.org/dmarcreport/images/2026/01/how-to-create-dmarc-record-0903.jpg)  
## How to Check Your TXT Record  
Once published, it’s important to confirm your TXT record is live and correctly formatted. You can check this using:  
- **Online DNS lookup tools** \- enter your \*\*domain and choose TXT lookup to see returned records.  
- \*\*Local CLI tools such as:
- dig yourdomain.com TXT +short (Mac/Linux)  
- nslookup -type=TXT yourdomain.com (Windows)

These tests help verify that the DNS propagation is complete and the expected TXT records are accessible.

## Common TXT Record Use Cases

Let’s look at real scenarios where TXT records make a difference:

## 1\. Domain Verification for Third-Party Services

When setting up services like Google Analytics, Microsoft 365, or [marketing platforms](https://www.indeed.com/career-advice/career-development/what-is-a-marketing-platform), providers often ask you to add a unique TXT record to your DNS to confirm you own the domain.

## 2\. Email Authentication (SPF, DKIM & DMARC)

TXT records are the backbone of modern [email security](https://dmarcreport.com/blog/why-email-security-matters-and-how-to-get-it-right/). Without correctly configured SPF and DKIM, DMARC won’t function effectively, leaving your domain vulnerable to abuse.

## 3\. Custom Metadata or Debugging

Some organizations use TXT records to store **non-critical metadata for troubleshooting**, internal documentation, or service coordination.

![What is dmarc](https://media.mailhop.org/dmarcreport/images/2026/01/what-is-dmarc-0903.jpg) 

## What Are Best Practices for TXT Records?

Here are some practical tips:

- \*\*Keep TXT values accurate and current. A small typo can break email authentication or verification checks.
- \*\*Watch for size limits. If your text is longer than the DNS provider’s limit, split it into multiple quoted strings.
- \*\*Use clear naming conventions. When creating **multiple TXT records**, choose intuitive hosts so you know what each entry is for.
- \*\*Monitor propagation. Use [DNS lookup](https://www.ibm.com/think/topics/dns-lookup) tools regularly after changes to ensure global visibility.

## Conclusion

TXT records may seem simple on the surface, but they play a critical role in domain security, [email deliverability](https://www.activecampaign.com/blog/email-deliverability), and verification workflows. Whether you’re publishing an SPF policy, deploying a DMARC record, or verifying domain ownership for a third-party service, many paths start with adding a correctly formatted TXT record to DNS. At [DMARCReport](https://dmarcreport.com/), we believe that understanding how DNS works - especially TXT records - gives you a strategic advantage in \*\*managing your online presence and protecting your reputation .

If you want help generating DNS records or verifying your setup, our tools and guides are designed to make it easy to get it right the first time.

## Topics

[ dkim ](/tags/dkim/)[ DMARC ](/tags/dmarc/)[ dmarc record ](/tags/dmarc-record/)[ dns record ](/tags/dns-record/)[ SPF ](/tags/spf/) 

![Vishal Lamba](https://media.mailhop.org/dmarcreport/images/team/vishal-lamba.jpg) 

[ Vishal Lamba ](/authors/vishal-lamba/) 

Content Specialist

Content Specialist at DMARC Report. Writes vendor-specific email authentication guides and troubleshooting walkthroughs.

[LinkedIn Profile →](https://www.linkedin.com/in/vishal-lamba/) 

## Take control of your DMARC reports

Turn raw XML into actionable dashboards. Start free - no credit card required.

[Start Free Trial](https://app.dmarcreport.com/) [Check Your DMARC Record](/tools/dmarc-checker/) 

## Related Articles

[  Foundational 14m  Add TXT Record on Namecheap: A Complete DNS Guide  Mar 5, 2025 ](/blog/add-txt-record-on-namecheap-a-complete-dns-guide/)[  Foundational 12m  Adding SPF Records To Your Domain For Outlook Email Authentication  Sep 25, 2025 ](/blog/adding-spf-records-to-your-domain-for-outlook-email-authentication/)[  Foundational 9m  Answering Your Webinar Questions: Email Security - From The Desk Of DMARCReport  Dec 2, 2025 ](/blog/answering-webinar-questions-email-security-dmarcreport-desk-insights-guide/)[  Foundational 12m  Best DMARC Checker Tools Comparing Dmarcian, Mxtoolbox, And Proofpoint  Dec 1, 2025 ](/blog/best-dmarc-checker-tools-comparing-dmarcian-mxtoolbox-and-proofpoint/)

```json
{"@context":"https://schema.org","@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com","logo":{"@type":"ImageObject","url":"https://dmarcreport.com/images/dmarcreport-logo.png"},"description":"DMARC reporting and email authentication management. Monitor aggregate and forensic DMARC reports, analyze authentication results, and enforce DMARC policies across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"sameAs":["https://www.wikidata.org/wiki/Q138898167","https://www.linkedin.com/company/duocircle","https://x.com/duocirclellc","https://www.g2.com/products/dmarc-report/reviews","https://github.com/duocircle","https://www.crunchbase.com/organization/duocircle-llc","https://www.trustradius.com/products/duocircle/reviews"],"aggregateRating":{"@type":"AggregateRating","ratingValue":"4.8","reviewCount":"470","bestRating":"5","worstRating":"1","url":"https://www.g2.com/products/dmarc-report/reviews"},"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://dmarcreport.com/support/"},"knowsAbout":["DMARC","DMARC Reporting","DMARC Aggregate Reports","DMARC Forensic Reports","Sender Policy Framework","DKIM","Email Authentication","Email Security","DNS Management","Email Deliverability"]}
```

```json
{"@context":"https://schema.org","@type":"WebSite","name":"DMARC Report","url":"https://dmarcreport.com","description":"DMARC reporting and email authentication management. Monitor aggregate and forensic DMARC reports, analyze authentication results, and enforce DMARC policies across all your domains.","publisher":{"@type":"Organization","name":"DMARC Report","url":"https://dmarcreport.com","logo":{"@type":"ImageObject","url":"https://dmarcreport.com/images/dmarcreport-logo.png"},"description":"DMARC reporting and email authentication management. Monitor aggregate and forensic DMARC reports, analyze authentication results, and enforce DMARC policies across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]}}}
```

```json
[{"@context":"https://schema.org","@type":"BlogPosting","headline":"How to Create a TXT Record and Add It to DNS","description":"In today’s digital world, websites and email domains rely on the Domain Name System (DNS) to connect infrastructure, prove ownership, and secure communications.","url":"https://dmarcreport.com/blog/how-to-create-a-txt-record-and-add-it-to-dns/","datePublished":"2026-01-28T10:28:40.000Z","dateModified":"2026-04-16T15:53:43.000Z","dateCreated":"2026-01-28T10:28:40.000Z","author":{"@type":"Person","@id":"https://dmarcreport.com/authors/vishal-lamba/#person","name":"Vishal Lamba","url":"https://dmarcreport.com/authors/vishal-lamba/","jobTitle":"Content Specialist","description":"Vishal Lamba writes DMARC Report's how-to guides and vendor-specific configuration walkthroughs. His work focuses on step-by-step implementation guides for major email platforms (Google Workspace, Microsoft 365, SendGrid, Mimecast, Proofpoint, Brevo, and others), troubleshooting common SPF and DMARC errors, and translating RFC-level specifications into practical deployment procedures for IT administrators.","image":"https://media.mailhop.org/dmarcreport/images/team/vishal-lamba.jpg","knowsAbout":["SPF Vendor Configuration","Email Platform Integrations","SPF Troubleshooting","Technical Documentation","Step-by-Step Guides"],"worksFor":{"@type":"Organization","name":"DMARC Report","url":"https://dmarcreport.com"},"sameAs":["https://www.linkedin.com/in/vishal-lamba/"]},"publisher":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com","logo":{"@type":"ImageObject","url":"https://dmarcreport.com/images/dmarcreport-logo.png"},"description":"DMARC reporting and email authentication management. Monitor aggregate and forensic DMARC reports, analyze authentication results, and enforce DMARC policies across all your domains.","parentOrganization":{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138883901","name":"DuoCircle LLC","url":"https://www.duocircle.com","sameAs":["https://www.wikidata.org/wiki/Q138883901","https://www.crunchbase.com/organization/duocircle-llc","https://www.linkedin.com/company/duocircle","https://github.com/duocircle"],"subOrganization":[{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138898167","name":"DMARC Report","url":"https://dmarcreport.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897474","name":"AutoSPF","url":"https://autospf.com"},{"@type":"Organization","@id":"https://www.wikidata.org/wiki/Q138897912","name":"Phish Protection","url":"https://www.phishprotection.com"}]},"sameAs":["https://www.wikidata.org/wiki/Q138898167","https://www.linkedin.com/company/duocircle","https://x.com/duocirclellc","https://www.g2.com/products/dmarc-report/reviews","https://github.com/duocircle","https://www.crunchbase.com/organization/duocircle-llc","https://www.trustradius.com/products/duocircle/reviews"],"aggregateRating":{"@type":"AggregateRating","ratingValue":"4.8","reviewCount":"470","bestRating":"5","worstRating":"1","url":"https://www.g2.com/products/dmarc-report/reviews"},"contactPoint":{"@type":"ContactPoint","contactType":"customer support","url":"https://dmarcreport.com/support/"},"knowsAbout":["DMARC","DMARC Reporting","DMARC Aggregate Reports","DMARC Forensic Reports","Sender Policy Framework","DKIM","Email Authentication","Email Security","DNS Management","Email Deliverability"]},"mainEntityOfPage":{"@type":"WebPage","@id":"https://dmarcreport.com/blog/how-to-create-a-txt-record-and-add-it-to-dns/"},"articleSection":"foundational","keywords":"dkim, DMARC, dmarc record, dns record, SPF","wordCount":1374,"image":{"@type":"ImageObject","url":"https://media.mailhop.org/dmarcreport/images/2022/04/dmarc-record-6071.jpg","caption":"How to Create a TXT Record and Add It to DNS","width":900,"height":600},"speakable":{"@type":"SpeakableSpecification","cssSelector":[".answer-block","h1"]}}]
```

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://dmarcreport.com/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://dmarcreport.com/blog/"},{"@type":"ListItem","position":3,"name":"Foundational","item":"https://dmarcreport.com/foundational/"},{"@type":"ListItem","position":4,"name":"How to Create a TXT Record and Add It to DNS","item":"https://dmarcreport.com/blog/how-to-create-a-txt-record-and-add-it-to-dns/"}]}
```
