What are DNS Records?
DNS records are instructions that tell the internet how to connect to your domain. Each record type has a specific purpose.
Types of DNS Records
- A Record → Points your domain to an IP address. E.g.: yourdomain.com → 45.67.89.100
- CNAME Record → Points a subdomain to another domain. E.g.: www → yourdomain.com
- MX Record → Defines your domain's mail server
- TXT Record → Free text for verifications (SPF, DKIM, Google Search Console)
- AAAA Record → Like the A record but for IPv6 addresses
Editing DNS Records in cPanel
- Log in to cPanel
- Find the "Domains" section
- Click on "DNS Zone Editor"
- Select your domain
- To add a record: click on "+ Add Record"
- Select the type, enter the name, TTL, and value
- Click on "Add Record"
Practical Examples
Pointing www to your main domain (CNAME)
Name: www | Type: CNAME | Value: yourdomain.com.Verifying domain in Google Search Console (TXT)
Name: @ | Type: TXT | Value: google-site-verification=XXXXXXAdding Google Workspace email (MX)
Name: @ | Type: MX | Priority: 1 | Value: aspmx.l.google.com.⚠️ TTL: TTL (Time To Live) defines how long a record is cached. For urgent changes, lower it to 300 seconds before making the change.