Managing DNS Records in cPanel
DNS records control how your domain routes traffic for your website, email, and other services. Understanding DNS records helps you configure your domain correctly.
Accessing the DNS Zone Editor
- Log into cPanel via your client area.
- Go to Domains > Zone Editor.
- Click Manage next to the domain you want to edit.
Common DNS Record Types
- A Record: Points a domain or subdomain to an IPv4 address. Your main A record points yourdomain.co.nz to your server's IP.
- AAAA Record: Same as A record but for IPv6 addresses.
- CNAME Record: Creates an alias — points one domain to another. Often used for "www" (www.yourdomain.co.nz > yourdomain.co.nz).
- MX Record: Directs email to your mail server. Essential for email delivery.
- TXT Record: Stores text information. Used for SPF, DKIM, DMARC (email authentication), and domain verification.
- SRV Record: Specifies the location of services (e.g., Microsoft 365, SIP).
Adding a DNS Record
- In the Zone Editor, click + Add Record.
- Select the record type from the dropdown.
- Enter the Name (e.g., the subdomain or @ for the root domain).
- Enter the Value (IP address, hostname, or text depending on the record type).
- Set the TTL (Time to Live) — 14400 (4 hours) is the default and usually fine.
- Click Save Record.
Editing or Deleting Records
In the Zone Editor, click Edit or Delete next to any record. Be careful when deleting records — removing MX records will stop email delivery, and removing A records will take your website offline.
Common Tasks
- Verify your domain with Google: Add a TXT record with the verification code Google provides.
- Set up email authentication: Add SPF, DKIM, and DMARC TXT records to improve email deliverability and prevent spoofing.
- Create a subdomain: Add an A record for the subdomain (e.g., shop.yourdomain.co.nz) pointing to the appropriate IP.
Warning: Incorrect DNS changes can take your website or email offline. If you're not sure what to change, ask our support team first.