6 views
A TXT record is a type of DNS (Domain Name System) record used to store text information about a domain.
Think of DNS as the internet’s address book. While an A record tells the internet where a website lives, a TXT record lets you attach specific text information to your domain that other services can read and verify.
For example, a TXT record might look like:
example.com TXT "google-site-verification=abc123xyz"
TXT records are commonly used for several important purposes:
1. Verifying domain ownership
Services such as Google Search Console, Google Workspace and other platforms may ask you to add a TXT record to prove that you control a domain.
2. Email security
TXT records are heavily used to protect domains from email spoofing and fraudulent messages. Three important email-related records are:
SPF: Specifies which servers are authorised to send email for your domain.
DKIM: Helps verify that an email was genuinely authorised by your domain and has not been improperly modified.
DMARC: Tells receiving mail servers what to do when an email fails SPF or DKIM checks.
A simplified SPF example might be:
example.com TXT "v=spf1 include:_spf.google.com ~all"
3. Connecting third-party services
A website, email provider, advertising platform, CDN, analytics service or other online service may ask you to place a particular TXT value in your DNS settings.
4. Domain verification
When you connect your domain to a service, the service may give you a unique TXT value. You add it to your DNS, and the service checks for that value. If it finds it, it knows you control the domain.
Where do you add a TXT record?
You normally add it through the DNS management panel of your domain registrar or hosting provider.
For example, you might see fields such as:
Type: TXT
Name/Host: @
Value: google-site-verification=abc123xyz
TTL: Automatic
The exact fields can vary depending on your provider.
In simple terms
A TXT record is a piece of text stored in your domain’s DNS that allows internet services to verify information about your domain.
If you’re building websites, understanding TXT records is particularly useful because you’ll encounter them when setting up Google services, email authentication, domain verification, Search Console, SPF, DKIM and DMARC.

Post a reply