Skip to content
Host4u Limited

A, CNAME, MX, TXT and PTR records explained

Support Portal  »  Knowledgebase  »  Viewing Article
There was a problem loading the comments.
  Print
  • 13/11/2026 9:38 am

A DNS zone is made of records. These are the ones you will meet most.

Record What it does Example
A Points a name to an IPv4 address. example.com to 203.0.113.10
AAAA The same, for an IPv6 address.
CNAME Makes a name an alias for another name. www.example.com to example.com
MX Says which mail server receives email for the domain.
TXT Holds text, used to prove ownership and to protect email (SPF, DKIM, DMARC).
NS Says which nameservers hold the zone.
PTR Points an IP address back to a name ("reverse DNS").

A record

The basic record: it sends a name to a server. Use one for your website's address, or for a subdomain such as shop.example.com that is hosted somewhere else.

CNAME record

An alias. The name you give it takes whatever address the other name has, so if that changes you do not have to update both. Two rules: a CNAME cannot sit on the bare domain (example.com), only on names such as www or shop, and a name that has a CNAME cannot have any other record.

MX record

Controls where email goes. Each MX record has a priority: mail goes to the lowest number first and to the others only if that server cannot be reached. If you use a separate email service, you change the MX records to the ones it gives you.

TXT record

A free-text record. Services ask you to add one to prove you own the domain, and email security uses them: see SPF, DKIM and DMARC.

PTR record

Reverse DNS: an IP address pointing back to a name. Mail servers check it, so it matters for servers that send email. It is set by whoever owns the IP address, not in your own zone.

Where to change them

See Editing DNS records in cPanel.


Share via
Did you find this article useful?  

Related Articles


Self-Hosted Help Desk Software by SupportPal