10 min
How to Configure DNS Records
A record, CNAME, MX, TXT (SPF/DKIM/DMARC), NS explained.
BeoHosting Team
10+ years of experience — Web hosting and infrastructure specialists
- Hosting
- WordPress
- cPanel
- SEO
- Security
- Domains
Last updated:
DNS records tell the internet where to find your site, email and other services for a domain. A misconfigured DNS means visitors see "site not found", email bounces and SSL certificates fail. This guide walks through every record type you need: A, AAAA, CNAME, MX, TXT (SPF/DKIM/DMARC), NS — and how to edit them in cPanel Zone Editor and Cloudflare DNS.
How to Configure DNS Records
Find your DNS editor
If nameservers point to your hosting: cPanel → Zone Editor. If DNS is on Cloudflare: Cloudflare → DNS → Records. Edit where the nameservers point — editing the wrong place does nothing.
A and AAAA — point domain to server IP
A record maps a name to IPv4. AAAA same but IPv6. Example: A @ → 1.2.3.4 (@ = apex domain). For subdomains: A blog → 1.2.3.4.
CNAME — alias one name to another
CNAME maps a name to another name. Example: CNAME www → yourdomain.com. Useful for pointing subdomains to Cloudflare, Vercel, S3. CNAME cannot be used for the apex domain in classic DNS.
MX — email routing
MX records tell senders which server handles email. Format: MX @ 10 mail.yourdomain.com (priority 10 = primary). For Google Workspace: 5 priority records pointing to aspmx.l.google.com. Without correct MX, email bounces.
TXT — SPF, DKIM, DMARC for email auth
SPF: TXT @ → "v=spf1 +a +mx -all". DKIM: TXT default._domainkey → long key from your email provider. DMARC: TXT _dmarc → "v=DMARC1; p=quarantine; rua=mailto:reports@yourdomain.com". Without SPF/DKIM/DMARC, email lands in spam.
NS — nameservers
NS records define which servers are authoritative for the zone. You usually edit these at the registrar, not in the zone. To delegate a subdomain to another DNS provider, add NS records in the parent zone.
TTL — how long DNS is cached
TTL in seconds tells resolvers how long to cache the record. Default 14400 (4 hours). Before migration, drop TTL to 300 (5 min) so changes propagate fast. After migration, raise back to 14400.
Ready to launch your website?
Join 4,000+ satisfied customers. Free migration and 15-day money-back guarantee.
FAQ
Answers to the most common questions about our services.
Our guarantees for your peace of mind
Protected from every angle
15-day guarantee
We refund without questions in the first 15 days.
Free migration
We migrate your site with no downtime — you do nothing.
24/7 support
Our experts are here 24/7 via tickets and live chat.