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
| Type | What it does | Example |
|---|---|---|
A | Points a name to an IPv4 address | @ → 203.0.113.10 |
AAAA | Points a name to an IPv6 address | @ → 2001:db8::10 |
CNAME | Makes a name an alias of another name | www → example.com |
MX | Says which servers receive email | @ → mail.example.com (priority 10) |
TXT | Holds text, used for verification, SPF, DKIM and DMARC | @ → "v=spf1 include:… ~all" |
@ means the bare domain (example.com).
Add a record in cPanel
- Open Domains → Zone Editor.
- Click Manage next to the domain.
- Click Add Record, choose the type, and fill in the name, TTL and value.
- Save.
yourdomain.com:2083
Search Tools (/)
Domains
Domains Redirects Zone Editor 1 Subdomains
Email Accounts Forwarders Email Routing Autoresponders
Files
File Manager FTP Accounts Backup Directory Privacy
yourdomain.com:2083 › Zone Editor
DNS records for example.com
+ Add RecordTypeNameRecordTTL
Aexample.com.203.0.113.103600
CNAMEwwwexample.com.3600
TXTexample.com.v=spf1 include:_spf.example.net ~all3600 2
Rules that trip people up
- A name that has a
CNAMEcan’t have any other record. That’s why the bare domain normally uses anArecord, not aCNAME. MXrecords must point to a hostname, never directly to an IP address.- Only one SPF
TXTrecord is allowed per name — merge multiple services into one. - Some DNS panels add your domain automatically: entering
www.example.comin the name field may createwww.example.com.example.com. Enter justwww.
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.