Skip to content
DigitalNepal.tech

How to Add DNS Records in Cloudflare (A, CNAME, MX, TXT)

Each record type explained with exact fields so nothing breaks.

By DigitalNepal · Updated 2026-10-04

A

DNS records are just a table: type, name, value. Learn four types and you can host anything.

Steps

  1. 1A records (servers)

    Name @ or subdomain, IPv4 value, proxied for sites. One A per server IP.

  2. 2CNAME (aliases)

    www → root, or host → provider target (Vercel/Render/GitHub). Never CNAME the apex in standard DNS.

  3. 3MX (email)

    Mail exchanger hostnames with priorities. Keep exactly what your mail provider specifies.

  4. 4TXT (verification)

    SPF, DKIM and domain-verification strings. Paste exactly - one character breaks email auth.

Good to know: TTL 300 while migrating, then raise. Low TTL during changes propagates fixes fast.

FAQ

Changes not showing?

Wait out old TTL, flush local DNS, and verify with the DNS Checker tool.

Share:FacebookXWhatsApp

Was this page helpful?

Related tools

Related guides

← Back to How-To Guides