Understanding DNS Records: A, CNAME, MX, TXT Print

  • 0

DNS records tell the internet where to find the different services on your domain. These are the ones you will actually use.

A record

Points a hostname to an IPv4 address. Your website lives here.

@      A     203.0.113.10
www    A     203.0.113.10

AAAA record

The same thing for an IPv6 address.

CNAME record

Points one hostname at another hostname. Common for www and for third-party services.

www    CNAME    yourdomain.com.
shop   CNAME    shops.myprovider.com.

A CNAME cannot coexist with other records on the same name, and cannot be used on the root domain in standard DNS.

MX record

Directs email for your domain to a mail server. Lower priority numbers are tried first.

@   MX   10   mail.yourdomain.com.

If you use an external mail provider, its MX records must replace the hosting ones entirely — never mix providers.

TXT record

Free-form text used for verification and email authentication: SPF, DKIM and DMARC all live in TXT records.

@   TXT   "v=spf1 +a +mx +ip4:203.0.113.10 ~all"

SRV and CAA

SRV records advertise services such as VoIP or chat. CAA records restrict which certificate authorities may issue SSL certificates for your domain.

TTL

Time To Live, in seconds, tells resolvers how long to cache a record. Lower the TTL to 300 a day before a planned change, then raise it again afterwards.

Where to edit

Edit records in cPanel → Zone Editor when your domain uses our nameservers, or at your DNS provider if it does not.


Was this answer helpful?

« Back