A Record vs. CNAME: Which One Should You Use?
Open your DNS settings, and you will see a lot of options. The two most popular are the A Record and the CNAME Record.
They both seem to do the same thing: take a visitor from [suspicious link removed] to your website. But they work in completely different ways. Using the wrong one can crash your website or break your email accounts.
Here is the simple guide to choosing the right one.
The "A Record" (The Direct Address)
The "A" stands for Address.
This record points your domain name directly to a specific server IP address (like 192.168.1.1).
The Analogy: Think of this like memorizing your friend's actual GPS coordinates. It is the most direct way to find their house.
- When to use it: You MUST use an A Record for your "naked" domain (e.g.,
findinfo.iowithout the "www"). - The Downside: If your server's IP address changes, you have to manually update this record.
The "CNAME Record" (The Nickname)
CNAME stands for Canonical Name.
This record doesn't point to an IP address. Instead, it points to another domain name. It says: "I don't know the IP address, but just go wherever google.com is going."
The Analogy: This is like saving a "Contact" in your phone. You don't dial the number directly; you just tap "Mom," and your phone looks up the number for you.
- When to use it: Use it for subdomains like
www.findinfo.ioorblog.findinfo.io. - The Benefit: If the destination server changes its IP, your CNAME still works automatically because it's just following the name, not the number.
The Golden Rule: Never CNAME the Root
This is the #1 mistake beginners make.
You generally cannot use a CNAME for your root domain (e.g., findinfo.io). If you do this, it will often block your MX records, meaning you will stop receiving emails.
Correct Setup Example:
- findinfo.io → A Record →
123.45.67.89 - www.findinfo.io → CNAME →
findinfo.io
Conclusion
DNS doesn't have to be complicated. Just remember: if you have an IP number, use an A Record. If you are pointing to another name, use a CNAME. Keeping them straight ensures your site stays online and your emails keep flowing.
Need to check your records?