Setting Up DNS Records — A to MX to CNAME

A practical guide to adding and editing the most common DNS records in cPanel's Zone Editor.

Accessing the Zone Editor

cPanel → Zone Editor → click Manage next to your domain → click + Add Record.

Adding an A Record (Point Domain to IP)

  • Type: A
  • Name: @ (or leave blank for root domain)
  • TTL: 14400 (default)
  • Record: your server IP address

Adding a CNAME (www subdomain)

  • Type: CNAME
  • Name: www
  • Record: yourdomain.com

Adding MX Records (Email Routing)

For Google Workspace, add these MX records (replace existing ones):

  • aspmx.l.google.com — Priority 1
  • alt1.aspmx.l.google.com — Priority 5
  • alt2.aspmx.l.google.com — Priority 5

Adding a TXT Record (Domain Verification / SPF)

  • Type: TXT
  • Name: @
  • Record: the verification string provided by the service
Tip: After adding DNS records, changes propagate in 15 minutes to 48 hours. Use dnschecker.org to verify.
Was this article helpful?

Still need help?

If this article didn't fully answer your question, our support team is available 24/7.

Submit a Support Ticket Search FAQs
Back to Domain Management All Articles