10 min
How to Configure DNS Records
A record, CNAME, MX, TXT (SPF/DKIM/DMARC), NS explained.
BeoHosting Tim
10+ godina iskustva — Stručnjaci za web hosting i infrastrukturu
- Hosting
- WordPress
- cPanel
- SEO
- Security
- Domains
Poslednje ažurirano:
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.
Spremni da pokrenete svoj sajt?
Pridružite se 4.000+ zadovoljnih korisnika. Besplatna migracija i 15 dana garancije povrata novca.
FAQ
Odgovori na najčešća pitanja o našim uslugama.
Naše garancije za vaš mir
Zaštićeni ste sa svake strane
15 dana garancije
Vraćamo novac bez pitanja u prvih 15 dana.
Besplatna migracija
Mi prebacimo vaš sajt bez prekida — vi ništa ne radite.
24/7 podrška
Naši stručnjaci su tu 24/7 kroz tikete i live chat.