ID123

Knowledge Base

View Categories

How to Add a TXT Record to Your DNS Server for Domain Verification and Email Authentication

Adding a TXT (Text) record to your DNS server is essential for tasks such as domain ownership verification, email sender authentication (via SPF), DKIM signatures, and spam prevention. This guide provides a step-by-step walkthrough on how to add a TXT record using your domain registrar or DNS hosting provider.

What Is a TXT Record?

A TXT record is a type of DNS (Domain Name System) record used to store text-based information in your domain’s DNS settings. These records are often read by external systems to:

  • Confirm domain ownership.
  • Configure Sender Policy Framework (SPF) to prevent spoofing.
  • Add DomainKeys Identified Mail (DKIM) for email verification.
  • Assist in spam filtering and email security.

Important: If you manage multiple domains, you will need to add a separate TXT record for each one.

Step 1: Log In to Your Domain Registrar or DNS Hosting Provider

To begin, access the DNS management panel where your domain is hosted. Common providers include:

  • GoDaddy
  • Namecheap
  • Google Domains
  • Cloudflare
  • Bluehost

Use your login credentials to access your domain’s dashboard.

Step 2: Navigate to the DNS Records Section

Once logged in, find the area where DNS settings can be managed. Depending on the provider, this section may be labeled:

  • DNS Management
  • Name Server Management
  • DNS Zone File
  • Advanced DNS Settings

Click into this section to manage or add new DNS records.

Step 3: Add a New TXT Record

Within the DNS settings panel:

  • Choose the option to add a new record.
  • Select TXT as the record type.
  • Fill in the required fields:
    • Name/Host: This is usually your domain name. Enter “@” to indicate the root domain or leave it blank depending on the provider’s format.
    • Value: Enter the exact text string provided by your email provider or service (e.g., SPF, DKIM, or domain verification string).
    • TTL (Time to Live): Use the default setting unless instructed otherwise.

Step 4: Save and Publish DNS Changes

After entering the TXT record details, click Save, Apply, or Publish—whichever action is required by your hosting provider to confirm the changes.

Step 5: Verify the TXT Record

It may take up to 48 hours for DNS changes to propagate globally, though updates often happen much faster.

You can confirm that your TXT record has been successfully added by using a DNS lookup tool or an online TXT record checker, such as:

  • Google Admin Toolbox Dig
  • MXToolbox TXT Lookup

Be sure the record appears exactly as you entered it.

Final Tips for Managing DNS TXT Records

  • Always double-check for typos—even a single character mistake can cause verification or email delivery to fail.
  • Don’t delete existing TXT records unless you’re certain they are no longer needed.
  • Keep track of who requested the TXT entry (e.g., your email marketing platform or domain administrator).

By following this guide, you can securely and correctly add TXT records to your DNS settings—a crucial step for domain verification, email authentication, and security configuration. Let us know if you need help verifying your domain or integrating with email systems—we’re here to assist.

Go to Top