Skip to content

Tutorials DNS Beginner2 min read

How to Add and Edit DNS Records (A, CNAME, MX, TXT)

A practical guide to the DNS records you’ll actually use — A, AAAA, CNAME, MX and TXT — with examples and how to add them in cPanel’s Zone Editor.

By ZSOLNET Editorial Team Updated

Key takeaways

  • A, CNAME, MX and TXT cover most everyday DNS needs.
  • A name with a CNAME can’t have other records; MX must point to a hostname.
  • Lower the TTL before changes so they take effect faster.

DNS records tell the internet where your website, email and services live. You’ll mostly work with five types.

The records you’ll use

TypeWhat it doesExample
APoints a name to an IPv4 address@ → 203.0.113.10
AAAAPoints a name to an IPv6 address@ → 2001:db8::10
CNAMEMakes a name an alias of another namewww → example.com
MXSays which servers receive email@ → mail.example.com (priority 10)
TXTHolds text, used for verification, SPF, DKIM and DMARC@ → "v=spf1 include:… ~all"

@ means the bare domain (example.com).

Add a record in cPanel

  1. Open Domains → Zone Editor.
  2. Click Manage next to the domain.
  3. Click Add Record, choose the type, and fill in the name, TTL and value.
  4. Save.
yourdomain.com:2083
Search Tools (/)

Domains

Domains Redirects Zone Editor 1 Subdomains

Email

Email Accounts Forwarders Email Routing Autoresponders

Files

File Manager FTP Accounts Backup Directory Privacy
1 Open Domains → Zone Editor in cPanel, then click Manage next to the domain.
yourdomain.com:2083 › Zone Editor

DNS records for example.com

+ Add Record
TypeNameRecordTTL
Aexample.com.203.0.113.103600
CNAMEwwwexample.com.3600
TXTexample.com.v=spf1 include:_spf.example.net ~all3600 2
2 Add Record, choose the type, fill in the name and value, and save. The new record appears in the list.

Rules that trip people up

  • A name that has a CNAME can’t have any other record. That’s why the bare domain normally uses an A record, not a CNAME.
  • MX records must point to a hostname, never directly to an IP address.
  • Only one SPF TXT record is allowed per name — merge multiple services into one.
  • Some DNS panels add your domain automatically: entering www.example.com in the name field may create www.example.com.example.com. Enter just www.

TTL

The TTL (time to live) is how long resolvers may cache the answer. Lower it (e.g. to 300 seconds) a day before planned changes, then raise it again afterwards.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

No account yet?