Aller au contenu

Offre limitéeJusqu'à -80% sur l'hébergement + domaine OFFERTJ'en profite

Cet article a été traduit automatiquement de l’anglais. Lire la version originale
Network engineer working on a server rack in a data center
Domains

A, CNAME, MX and TXT DNS Records Made Simple

What DNS is and what each record type does: A, AAAA, CNAME, MX, TXT, SPF, DKIM and DMARC, with practical examples for websites and email.

Dans cet article
  1. What is DNS?
  2. Nameservers: who answers for your domain
  3. The most important DNS records
  4. Email authentication: SPF, DKIM and DMARC
  5. What is TTL?
  6. Common DNS problems and fixes
  7. Where to manage your DNS
  8. Frequently asked questions
  9. Conclusion

DNS is the system that turns a domain name into the address of a server. DNS records are the individual instructions that tell the internet where your website lives and where your email should go. Once you understand the main DNS records, most domain and email problems become easy to solve.

What is DNS?

The Domain Name System works like a phone book for the internet. Computers find each other using IP addresses, but people remember names. When someone visits yourbrand.com, DNS looks up the records for that domain and returns the right server address.

Nameservers: who answers for your domain

NS records name the servers that hold all the other records for your domain. If your domain uses your hosting provider's nameservers, you manage DNS in your hosting control panel. If it uses another provider's nameservers, you manage DNS there.

The most important DNS records

A record

Points a name to an IPv4 address. Example: yourbrand.com → 192.0.2.10. This is what makes your website load from your hosting server.

AAAA record

The same as an A record, but for an IPv6 address.

CNAME record

Makes one name an alias of another. Example: www.yourbrand.com → yourbrand.com. CNAMEs are often used to connect services such as email marketing tools or online stores.

MX record

Tells the world which servers receive email for your domain. If MX records are wrong, email will not arrive. Each MX record has a priority; lower numbers are tried first.

TXT record

Holds text information. TXT records are used for domain verification, for example with Google Search Console, and for email authentication.

Email authentication: SPF, DKIM and DMARC

These three TXT-based records help your emails reach the inbox instead of the spam folder:

  • SPF lists which servers are allowed to send email for your domain.
  • DKIM adds a digital signature to your messages, so receivers can check they were not changed.
  • DMARC tells receiving servers what to do when SPF or DKIM checks fail, and can send you reports.

Major email providers increasingly expect senders to have SPF, DKIM and DMARC in place. Set them up for every domain that sends email, including order confirmations from your store.

What is TTL?

TTL, or time to live, tells other servers how long to remember a record before checking again. A long TTL means fewer lookups; a short TTL means changes spread faster. Lower the TTL a day before a planned change, such as a website migration.

Common DNS problems and fixes

ProblemLikely cause
Website not loading after a changeWrong A record or DNS still updating
www works but the main domain does not, or the reverseMissing A or CNAME record for one of them
Email not arrivingMissing or wrong MX records
Emails going to spamNo SPF, DKIM or DMARC
Changes not visibleHigh TTL or wrong nameservers

Where to manage your DNS

If your domain uses Foxeep nameservers, manage records in cPanel under the Zone Editor. If you need help, contact our team from the support center. New to domains? Start with how to register a domain name.

Frequently asked questions

How long do DNS changes take?

Usually minutes to a few hours, depending on the TTL. Some networks can take up to 48 hours.

Can I have a CNAME on my main domain?

Generally no. The root domain should use A or AAAA records; use CNAMEs for subdomains such as www.

Do I need DMARC for a small business?

Yes. It protects your domain from being used in phishing emails and improves deliverability.

Conclusion

With these DNS records explained, you can point your domain to your website, make sure email arrives and protect your reputation with SPF, DKIM and DMARC. Keep a copy of your records before any change, and DNS will never catch you by surprise.

Sujetsdnsmx recordcnamespf dkim dmarc
Partager l'articlePublierFacebookLinkedInWhatsApp
Foxeep Editorial Team

L’équipe Foxeep rédige des guides pratiques pour vous aider à créer et développer votre site.