HostGator is a long-running shared-hosting provider that uses cPanel for domain and DNS management. TXT records are added through the cPanel Zone Editor on any HostGator account that includes DNS hosting. This guide walks you through publishing a TXT record at HostGator — the kind you'll need for SPF, DKIM, DMARC, or domain ownership verification.
Step-by-step instructions
- Log in to your HostGator customer portal.
- Open cPanel for the relevant hosting package.
- Under the Domains section, click Zone Editor.
- Find your domain in the list and click Manage.
- Click + Add Record → choose Add "TXT" Record.
- Name: the fully-qualified host (e.g.
example.com.for the root,_dmarc.example.com.for DMARC,google._domainkey.example.com.for DKIM). cPanel typically appends the domain if you leave it short. - TTL:
14400(default). - Record: paste the value.
- Click Add Record.
cPanel's Zone Editor wants fully-qualified hostnames with a trailing dot. If your TXT record isn't appearing after saving, double-check that cPanel didn't append the domain twice (e.g. _dmarc.example.com.example.com).
What you might be adding
The most common TXT records published at a DNS provider are the three that make up modern email authentication:
- SPF — a single TXT record at the root (host
@) listing which servers may send mail as your domain. Build one with the SPF checker. - DKIM — a TXT (or CNAME) record at a per-selector host like
google._domainkey, holding the public key your mail provider uses to sign your mail. Look yours up with the DKIM lookup. - DMARC — a single TXT record at
_dmarcthat tells receivers what to do when SPF or DKIM fail. Build one with the DMARC checker.
Other common TXT records are domain-verification tokens for services like Google Search Console, Microsoft 365 onboarding, and various SaaS tools — they all use the same "add a TXT record" flow above.
After you've added the record
Once you save, HostGator publishes the record to its nameservers — usually within minutes, sometimes up to an hour. Other DNS resolvers around the world will cache the change based on the TTL you set, so it can take a bit longer for the rest of the internet to see it. The safe wait is 15–30 minutes before re-checking; full propagation is usually under 4 hours.
When you're ready to verify, paste your domain into the full diagnostic or the specific tool for the record you added — SPF, DMARC, or DKIM. If the record doesn't appear after an hour, log back in to HostGator and confirm it actually saved — the most common cause of "missing" records is the save click being skipped.
Frequently asked questions
How long does it take for a new TXT record to take effect?
Most DNS providers publish a new TXT record in minutes. Cloudflare is near-instant. GoDaddy, Namecheap and IONOS can take up to an hour. Some receivers cache DNS for longer, so it's normal to wait 1–4 hours before re-checking. If a record still isn't visible after 24 hours, the change probably didn't save — log back in and confirm it's there.
What TTL should I use for a TXT record?
The default is almost always fine — usually 1 hour (3600 seconds) or Auto. A lower TTL (300 seconds) is useful only while you're actively testing, so changes propagate faster. Once the record is stable, leave the TTL alone.
Can a domain have more than one TXT record?
Yes — a domain can have many TXT records at the same name, and they're served as a set. The catch is per record type: SPF, for example, requires exactly one TXT record at the root that starts with v=spf1. Publishing two SPF records breaks SPF entirely. DMARC has the same one-record rule at _dmarc. DKIM is different — each selector is a separate record at its own host, so multiple selectors live side by side without conflict.
Why does my TXT value need to be in quotes sometimes but not others?
DNS stores TXT values as one or more quoted strings. Some control panels (Cloudflare, GoDaddy, Namecheap) ask for the raw value and add the quotes for you. Others (sometimes Route 53 or Cloud DNS) want the quotes typed in. When in doubt, paste without quotes first — if the record doesn't show up, try with quotes.