Blog · WebJi® India

How to Add a TXT Record in cPanel

Quick answer: A TXT record is a DNS record that carries text for other services to read — SPF, DKIM and DMARC policies and provider verification strings. Add one in cPanel at Domains > Zone Editor: click Manage on your domain's row, choose TXT from the Add Record menu, set the Name (@ or a subdomain such as selector._domainkey), paste the Value exactly as the provider gave it, then Save Record.
✓ In business since 2005✓ INR + GST billing✓ 24/7 Email Support — avg reply < 60 min
Young Indian gamer with a headset at an RGB-lit gaming PC in a dark room — how to add txt record in cpanel

What TXT records do

A TXT record is a DNS record that carries text for other services to read: SPF, DKIM and DMARC policies for email authentication, and the verification strings Google Workspace, Meta and other providers ask you to publish. The quick version of the task:

  1. Open cPanel > Domains > Zone Editor (under the Domains section).
  2. Find your domain and click Add Record.
  3. Set Type to TXT.
  4. Set Name/Host — @ for the root (the editor expands it to yourdomain.com.) or a subdomain like google._domainkey.
  5. Set TTL — 3600 is the sane default.
  6. Paste the Value — the record string exactly as the provider gave it.
  7. Click Add Record — changes go live on the authoritative zone immediately and propagate outward per TTL.

That is the whole procedure; the sections below cover SPF, DKIM and verification records specifically. For the full mail-delivery sequence these records serve, see the business email hosting plans.

The cPanel Zone Editor walkthrough

Open cPanel > Domains > Zone Editor, click Manage on your domain's row to open the zone, then click Add Record — or the small arrow beside it — and pick TXT from the record-type menu. Enter the Name, TTL and Record, then click Save Record (or Save All Records when adding several). For a subdomain, type the name in full prefix notation, e.g. google._domainkey.yourdomain.com. Two cautions from the official documentation: the Record field accepts invalid data, so paste the provider's string exactly; and if TXT is missing from the menu, your host's package has limited the editor — the host must enable the full Zone Editor before you can add the record.

Young Indian gamer with a headset at an RGB-lit gaming PC in a dark room — how to add txt record in cpanel

Adding SPF correctly

SPF is one TXT record at the root (@) whose value starts v=spf1, lists the mail servers allowed to send for the domain, and usually ends in ~all. Paste the exact string your mail provider generates — it already names the right servers. When you add a sender, merge it into that one record with an include: mechanism; publishing a second v=spf1 record on the same hostname makes receivers pick arbitrarily and usually fails both.

Adding DKIM records

A DKIM record is a TXT record published at selector._domainkey.yourdomain.com, where the selector is the label the sending mail server signs with. In cPanel, Email > Email Deliverability generates the domain's DKIM key and can publish the record for you; when an external provider such as Google or Zoho signs your mail, copy the selector and value it supplies into the Zone Editor instead. Long keys often arrive split into multiple quoted strings — concatenate them into one value before saving.

Verification records: Google Workspace, Meta and more

Domain-verification TXT records prove you control the domain. Google Workspace gives you a google-site-verification= token; Meta and Microsoft 365 hand out similar strings. Add the token as a TXT record at @ with TTL 3600, wait for it to propagate, then click Verify in the provider's console — the console's exact string is always the authority, so copy it rather than retyping it.

Checking propagation with dig and whatsmydns

New records go live on the authoritative servers immediately and spread outward per TTL. Check yours with dig TXT yourdomain.com (add +short to see just the value) or dig TXT selector._domainkey.yourdomain.com for a DKIM record, or watch worldwide propagation on whatsmydns.net with the TXT filter. If a checker still returns the old answer, its cache has not expired yet — wait out the TTL before re-editing the record.

Common mistakes: quotes, @, trailing dots

Quotes. Pasting the provider's value with their quotes is usually fine in cPanel, but doubled quotes ('"value""') break parsing — if the record shows weird in dig, re-enter without quotes. @ confusion: entering yourdomain.com in Host duplicates the domain (it becomes yourdomain.com.yourdomain.com.) — use @ alone.

Trailing dots: cPanel appends the zone automatically; do not type the full name with a final dot. Splitting long DKIM keys: if a provider gives the key in multiple quoted segments, concatenate them into one string. And the master rule: one SPF record per hostname — a second v=spf1 record makes receivers pick arbitrarily, usually failing both. Mail-record neighbours live in the MX guide and the MX explainer.

Frequently Asked Questions

How do I add a TXT record in cPanel?

Open Domains > Zone Editor, click Manage on your domain's row, choose TXT from the Add Record menu, set the Name (@ for the root, or a subdomain like selector._domainkey.yourdomain.com), paste the provider's exact Value and click Save Record. The record goes live on the authoritative zone immediately.

How do I verify my domain for Google Workspace?

Copy the google-site-verification token from your Google Admin console, add it as a TXT record at @ in the Zone Editor, wait for it to propagate, then click Verify in the console. The console's string is the authority — copy it rather than retyping.

What is an SPF record and how do I add one?

SPF is a TXT record that lists the mail servers allowed to send email for your domain; its value starts v=spf1 and usually ends ~all. Add it at @ in the Zone Editor with the exact string your mail provider generates. Only one v=spf1 record per hostname is allowed — merge additional senders into it with include: mechanisms.

How long does a TXT record take to propagate?

New records are live on the authoritative servers immediately and visible elsewhere as caches expire — usually within minutes to an hour at the common TTL of 3600. Check with dig TXT yourdomain.com or whatsmydns.net before re-editing; a duplicate record added while waiting causes new problems.

How do I add DKIM in cPanel?

Open cPanel > Email > Email Deliverability — it generates the domain's DKIM key and can publish the record for you. For an external provider, create a TXT record at selector._domainkey.yourdomain.com with the selector and value the provider supplies, concatenating any split quoted segments into one string.

Where is the Zone Editor in cPanel?

On the cPanel home page, under the Domains section — every domain row carries quick A, CNAME and MX buttons plus a Manage link that opens the full zone, where TXT lives in the Add Record menu. (WebJi® Windows plans use Plesk instead, whose DNS settings serve the same role.)

Is WebJi® an Indian company?

Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.

Do you provide GST invoices?

Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

Need help with this?

WebJi® support does it for you — free. Talk to our Jaipur team →