Blog · WebJi® India

A Record vs CNAME: When to Use Each DNS Record

Quick answer: A Record vs CNAME: When to Use Each DNS Record from WebJi®, billed in INR with 18% GST on the invoice. Email support@webji.services is 24/7 in Hindi and English (average first reply under 60 minutes). Phone +91 141 4941811 is business hours only. The company has been in this business since 2005.
✓ In business since 2005✓ INR + GST billing✓ 24/7 Email Support — avg reply < 60 min
Young Indian gamer with a headset at an RGB-lit gaming PC in a dark room — a record vs cname

Quick Answer: A Record vs CNAME

An A record maps a name to an IPv4 address — 'webji.in lives at 203.0.113.10'. A CNAME maps a name to another name — 'cdn.webji.in is whatever cdn-provider.net resolves to' — and inherits that target's addresses.

DimensionA recordCNAME
Points toIPv4 addressAnother hostname
At zone apex (root)?YesNo — protocol forbids it
Follows target IP changesNo — manual updatesYes, automatically
Other records at same nameAllowedForbidden
IPv6 siblingAAAA recordWorks the same

Rule of thumb: your own stable servers get A records; anything whose IPs you do not control gets a CNAME. The full record set lives in DNS records explained.

What an A Record Does (IP Mapping)

How this plays out with A record: settings that look cosmetic usually decide page speed and uptime under real traffic. The defaults WebJi® ships are tuned for Indian network conditions, and support can review your setup on request.

Young Indian gamer with a headset at an RGB-lit gaming PC in a dark room — a record vs cname

What a CNAME Does (Name Aliasing)

What a CNAME Does (Name Aliasing). Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

The Root-Domain CNAME Restriction

The rule behind every confused forum thread, in plain terms:

  • The zone apex must hold SOA and NS records — they identify the zone's authority.
  • A CNAME must be the only record at a name, by definition.
  • Both cannot coexist, so a CNAME at the root is a protocol violation; most panels simply reject it.

Practical mapping: apex gets an A record (or provider-side flattening); www gets a CNAME to the apex or your host's hostname; subdomains (shop, blog, staging) freely CNAME to platform hostnames. A verification TXT record at a name you also want as CNAME is a conflict — resolve with A records or nested names.

When to Use Each: Hosting, CDN, www

Concrete setups:

  • Pointing at shared hosting — your host gives an IP: A record at the apex, optionally www CNAME'd to it. If the host gives a hostname instead, CNAME the subdomains; the apex still needs an A record.
  • Attaching a CDN — edge hostnames change constantly, so subdomains CNAME to the CDN target. Full-site CDN at the apex needs flattening.
  • www setups — apex A record plus www CNAME to apex, with redirects choosing one canonical.
  • Email — unaffected: MX records live at whichever name receives mail.

Setting these lives in the DNS zone of your domain registration — the zone editor handles all four cases.

ALIAS, ANAME and CNAME Flattening

ALIAS, ANAME and CNAME Flattening. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

Setting Both in Your DNS Panel

Set the nameservers at the registrar, then edit records only in the DNS host those nameservers point at. Editing the other panel does nothing. A website and its mail can use different hosts: the A record sends the site, MX sends the mail.

Frequently Asked Questions

What is the difference between an A record and a CNAME?

An A record maps a name to an IPv4 address — 'webji.in lives at 203.0.113.10'. A CNAME maps a name to another name — 'cdn.webji.in is whatever cdn-provider.net resolves to' — and inherits that target's addresses.

Can I put a CNAME on the root domain?

On shared plans it is pre-configured; on custom-quoted tiers you choose the values, and our Jaipur desk sizes them against your actual traffic before you commit.

Should I point to hosting with an A record or CNAME?

For “Should I point to hosting with an A record or CNAME”: Pointing at shared hosting — your host gives an IP: A record at the apex, optionally www CNAME'd to it. If the host gives a hostname instead, CNAME the subdomains; the apex still needs an A record.

Can a CNAME point to an IP address?

The registered office is Shop #27, Ajmer Road, Tagore Nagar, Jaipur, Rajasthan 302021. That office is the registered headquarters. Clients in other cities are served online — WebJi® does not run a local walk-in branch in every city page it publishes. About 99% of clients never visit; hosting and support are delivered online. Email support@webji.services is 24/7. Phone +91 141 4941811 is business hours.

What is CNAME flattening?

Practical mapping: apex gets an A record (or provider-side flattening); www gets a CNAME to the apex or your host's hostname; subdomains (shop, blog, staging) freely CNAME to platform hostnames. A verification TXT record at a name you also want as CNAME is a conflict — resolve with A records or nested names.

How many A records can one domain have?

A Record vs CNAME: When to Use Each DNS Record. Email support@webji.services is 24/7 in Hindi and English, average first reply under 60 minutes. Phone +91 141 4941811 is business hours. If the question is about your own account, open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10.

Is WebJi® an Indian company?

Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.

Do you provide GST invoices?

Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

Need help with this?

WebJi® support does it for you — free. Talk to our Jaipur team →