Skip to content
0850 554 5439 [email protected]

What do you need help with?

Search the guides and tutorials, or browse the categories.

Editing DNS records with cPanel Zone Editor: A, CNAME, MX and TXT

Shared Hosting 28 views Step-by-step guide Last verified: Markdown
What you will learnHow to tell where your DNS records are managed, how to add, edit and delete A, CNAME, MX and TXT records with cPanel Zone Editor, and how to check that a change has spread.
Time10 minutes

1. First: where is your DNS managed?

A DNS record only takes effect if you edit it where your domain's nameservers (NS) point. Every hosting account has a zone in cPanel, but if your domain uses other nameservers, a change in Zone Editor never reaches the rest of the internet; it looks as if nothing happened.

  • If your nameservers are your hosting account's, you edit records in Zone Editor (this guide).
  • If your nameservers are ns1.gyrodns.net and ns2.gyrodns.net, the records are in Gyro DNS; follow guide L09. These are the default nameservers for domains bought from Gyro Hosting.
  • If you use another DNS or CDN service, edit the records in that service's panel.

You can find your nameservers in your domain's registration details (the domain page in the client area, or a whois lookup). Zone Editor's Manage screen also shows the nameservers configured for the zone; if they differ from your domain's, don't make changes there.

A DNS record only takes effect if you edit it where your domain's nameservers point.

2. Record types in brief

Type What it does Example
A Points a name to an IPv4 address gyro-ornek.ornekfirma.com → 203.0.113.50
CNAME Points a name to another name magaza.ornekfirma.com → magaza.example.com
MX Says which server receives the domain's email Priority 10, destination mx1.example.com
TXT Text record: SPF, DKIM, DMARC and service verifications gyro-site-verification=ornek123
Warning

You can't add a CNAME to the root domain itself (ornekfirma.com); use an A record for the root domain.

3. Add A, CNAME and MX records

  1. In cPanel, open Zone Editor in the Domains section.
  2. On your domain's row, click the button for the type you want to add: A Record, CNAME Record or MX Record. Click Manage to see all records.
Domains → Zone Editor: click A Record, CNAME Record or MX Record to add a record quickly, or Manage to see all records.

A record:

  1. Type the subdomain in Name (for example gyro-ornek; cPanel adds your domain to the end itself).
  2. Type the IPv4 address in Address and press Add An A Record.
A Record window: type the subdomain in Name and the server's IPv4 address in Address, then press Add An A Record.

CNAME record:

  1. Type the subdomain in Name (for example magaza) and the full domain it should point to in CNAME (for example magaza.example.com).
  2. Press Add A CNAME Record.
CNAME Record window: type the subdomain in Name and the full domain it should point to in CNAME.

MX record:

  1. Enter a number in Priority; if there are several MX records, the server with the lower number is tried first.
  2. Type the mail server's full name in Destination (for example mx1.example.com) and press Add An MX Record.
MX Record window: enter the number in Priority (lower is tried first) and the mail server's full name in Destination.
Warning

If you are moving your email to another service, delete the old MX record after adding the new ones. MX records pointing to two different services send some messages to the wrong place. If your email stays in your hosting account, leave the default MX record alone.

4. Add a TXT record, edit and delete records

  1. Click Manage on the domain's row. At the top of the screen you see the Configured nameservers for this zone line (the check in Section 1).
The top of the Manage screen shows the nameservers configured for the zone. If your domain doesn't use these nameservers, changes made here have no effect.
  1. Click the arrow next to the Add Record button and choose Add “TXT” Record. The same menu also has other types such as AAAA, CAA, DMARC and SRV.
  2. In the row that opens above the table, type the Name (for example _gyro-dogrulama) and the verification text in Record, then press Save Record.
  3. To change a record, click Edit on its row; to remove it, click Delete. You can narrow the table with the Filter by name box or the A, CNAME, MX, SRV, TXT filters at the top.
Records you add appear in the table; filter them with the Filter by name box and change them with Edit and Delete.
Warning

The domain itself must have only one SPF record (a TXT record starting with v=spf1). When you add a new email service, don't create a second SPF record; add that service's include: to the existing one. Don't delete the default._domainkey (DKIM) record that cPanel created.

5. Check that the change has spread

  • DNS changes may not show everywhere at once, because the old value stays in caches for the record's TTL (14400 seconds = 4 hours by default in Zone Editor). A newly added name usually resolves within minutes; a changed record may show its old value in some places until the old TTL expires.
  • Check from your own computer: in the Windows command prompt, nslookup -type=TXT _gyro-dogrulama.ornekfirma.com, and on macOS and Linux dig TXT _gyro-dogrulama.ornekfirma.com; the new value should appear in the answer.
  • If there's no answer at all, or the old value lasts for days, go back to Section 1: DNS is most likely managed somewhere else.

6. Symptom → cause → fix

Symptom Likely cause Fix
I added the record but it shows up nowhere The domain uses other nameservers Add the record where DNS is managed; for Gyro DNS see L09
I changed it, some places still show the old value The TTL hasn't expired Wait; lower the TTL before planned changes
An error like "CNAME can't share a name with another record" An A or TXT record exists with the same name Delete the conflicting record or choose another name
Some emails don't arrive MX records for both the old and new service exist Delete the MX record you no longer use
Emails I send go to spam SPF is missing, there are two SPF records, or DKIM was deleted Merge all senders into one SPF record; open a support ticket to restore DKIM
The www address doesn't open The www record was deleted Add a CNAME for www pointing to ornekfirma.com (see B44)

7. Frequently asked questions

How long does a DNS change take to spread?

New records usually appear within minutes. When you change an existing record, the old value can stay in caches for the record's TTL. The "48 hours" rule of thumb is usually about nameserver changes.

Is adding an A record in Zone Editor enough to create a subdomain?

Yes, if the subdomain should point to another server. If you are going to host a site on the subdomain in this hosting account, add it on cPanel's Domains screen; the DNS records needed are created automatically.

I deleted a record in Zone Editor by mistake. Can I undo it?

Zone Editor has no undo. Add the deleted record again with the same values. To recreate cPanel's default records (such as DKIM), open a support ticket.

I use Gyro DNS, but I also see records in Zone Editor. Which ones count?

If your nameservers are ns1.gyrodns.net and ns2.gyrodns.net, the records in Gyro DNS are the ones that count; the records in Zone Editor are only the server's own copy. Make your changes in Gyro DNS (L09).

What is the DNSSEC button for?

DNSSEC signs DNS answers. It only makes sense if your DNS is on this hosting account's nameservers and your domain registrar supports DS records; if you're not sure, don't turn it on, as a wrong setup can make the domain unreachable.

Did you know?

Gyro DNS is free for hosting customers, and besides the client area it lets you manage your records with the API, Gyro CLI or Terraform. See guides L08 and L09 for details.

  • L09 — Gyro DNS record management: A, AAAA, CNAME, MX, TXT, SRV, CAA, ALIAS and NS
  • L08 — Adding and moving a domain to Gyro DNS
  • B44 — Redirects with .htaccess: www, HTTPS and 301
  • B41 — My site won't load: 500 Internal Server Error
Was this helpful?

Thanks for your feedback!

Still Need Help?

The support team is here around the clock for anything you can't find in the knowledge base.