Soft2Hosting
cPanel DNS Zone Editor Guide: Setting Up A, CNAME, MX & TXT Records
Managing domain DNS records correctly is essential for directing web traffic, routing corporate domain email, and verifying domain ownership for third-party platforms. In cPanel shared hosting, the graphical Zone Editor provides an intuitive interface to create, modify, and delete DNS zone records without editing raw zone files manually. Understanding the syntax and operational roles of A, CNAME, MX, and TXT records ensures reliable domain functionality.
Accessing the Zone Editor in cPanel
To access your domain's DNS management interface, log in to your cPanel dashboard, navigate to the Domains section, and click Zone Editor. The interface displays all domains associated with your cPanel account alongside quick-action buttons for common record types.
For comprehensive control, including managing existing records and creating specialized TXT, MX, and SRV entries, click the Manage button adjacent to your target domain name. This opens the complete DNS table where all active zone records are cataloged with their respective Time-To-Live (TTL), class, type, and record data.
Step-by-Step Guide to Essential DNS Record Types
1. A Records (Address Records)
An A record maps a human-readable hostname directly to a 32-bit IPv4 address. It is the primary record responsible for pointing your domain or subdomain to the web server hosting your website.
- Name: Enter your domain (e.g.,
example.com.) or subdomain (e.g.,portal.example.com.). - TTL: Typically set to
14400seconds (4 hours) for standard stability, or300seconds prior to migration. - Type: Select A.
- Record: Enter the IPv4 address of your hosting server (e.g.,
198.51.100.25).
2. CNAME Records (Canonical Name Records)
A CNAME record creates an alias that points one domain name to another canonical hostname rather than directly to an IP address. It is commonly used for standard web prefixes (such as mapping www.example.com to example.com) or pointing subdomains to external services like Shopify or landing page builders.
- Name: Enter the alias hostname (e.g.,
www.example.com.). - TTL: Set to
14400. - Type: Select CNAME.
- Record: Enter the target destination hostname (e.g.,
example.com.).
DNS Rule: Under standard DNS specifications (RFC 1035), a CNAME record cannot coexist with other record types on the exact same hostname. Never create a CNAME record for your root zone apex (example.com), as it conflicts with root SOA, NS, and MX records.
3. MX Records (Mail Exchange Records)
MX records designate the mail servers responsible for accepting incoming email on behalf of your domain. Each MX record includes an integer priority value where lower numbers indicate higher preference.
- Name: Enter your domain name (e.g.,
example.com.). - Priority: Specify priority (e.g.,
0or10for primary mail server,20for secondary backup). - Destination: Enter the Fully Qualified Domain Name (FQDN) of your mail server (e.g.,
mail.example.com.).
4. TXT Records (Text Records)
TXT records store human-readable and machine-readable text data associated with a domain. Today, TXT records are primarily used for domain ownership verification (Google Search Console, Microsoft 365) and email security frameworks:
- SPF (Sender Policy Framework): Authorizes which servers may send email on behalf of your domain (e.g.,
v=spf1 +a +mx ~all). - DKIM (DomainKeys Identified Mail): Holds the public cryptographic key used by receiving mail servers to verify email integrity.
- DMARC: Defines handling policies for emails that fail SPF or DKIM checks (e.g.,
v=DMARC1; p=reject; rua=mailto:dmarc@example.com).
Understanding DNS Propagation and Troubleshooting
When you update or add a DNS record in cPanel Zone Editor, changes apply locally to the server's DNS zone file immediately. However, global visibility across the internet depends on DNS caching and TTL values. Resolvers around the world cache DNS records according to their TTL; propagation typically completes within a few minutes to several hours.
To verify that your DNS records have updated accurately, use command-line lookup utilities:
# Query the A record for your domain
dig +short A example.com
# Inspect mail exchange records
dig +short MX example.com
# Verify TXT authentication records
dig +short TXT example.comPrerequisite Check: cPanel Zone Editor controls DNS only if your domain's registrar points to your hosting nameservers. If your domain uses external nameservers (such as Cloudflare), DNS records must be configured in that external dashboard instead.
Soft2Hosting cPanel Shared Hosting Features
Soft2Hosting provides cPanel shared hosting plans equipped with intuitive DNS zone management, free AutoSSL certificate automation, and professional domain email routing. Choose from our annually billed plans: Starter Pro (1 website, 10 GB NVMe, 5 email accounts at Rs 2,499/year), Business Pro (10 websites, 50 GB NVMe, unlimited email, daily backups at Rs 4,999/year), or Enterprise Pro (unlimited websites, 100 GB NVMe, LiteSpeed + Redis cache at Rs 7,999/year).
Discover cPanel shared hosting packages on Soft2Hosting Web Hosting.