What is an A Record and How is it Different from CNAME and MX?

Last Updated on December 30, 2022 by 10 Comments

Editorial Note: We may earn a commission when you visit links on our website.
What is an A Record and How is it Different from CNAME and MX?
Blog / WordPress / What is an A Record and How is it Different from CNAME and MX?
Play Button

The Domain Name System, or DNS, is what enables us to navigate the web using easy-to-remember domain names. It ties the various parts of the internet together and helps facilitate communication between them. However, the DNS and its components can be confusing, especially when it comes to DNS records.

In this article, weโ€™ll explain DNS A Records. Weโ€™ll discuss what they are, what they do, and how theyโ€™re different from CNAME and MX records. Then weโ€™ll show you how to find them for your website.

Letโ€™s get started!

Subscribe To Our Youtube Channel

A Brief Introduction to DNS Records

Every device thatโ€™s connected to the internet has its own unique IP address. This component functions similarly to a mailing address in that it tells other computers where to send requests and responses. In the case of websites, that transfer of information results in content loading in visitorsโ€™ browsers.

However, IP addresses are made up of long strings of numbers, so typing one into your browser to visit a site isnโ€™t exactly user-friendly. Thatโ€™s where the DNS comes in. Itโ€™s a system that assigns websites more legible domain names, such as www.elegantthemes.com, and ties them to corresponding IP addresses so that users can access them.

DNS records are the elements that tell the DNS which URLs are associated with a given IP address. Theyโ€™re the threads that tie the whole database together so your browser knows where to send requests when you type in a web address.

What Is an A Record and How Is It Different from CNAME and MX?

There are several different types of DNS records, but the most common and important ones are referred to as โ€œAโ€, โ€œCNAMEโ€œ, and โ€œMXโ€. Letโ€™s break down what each one does and how they differ.

A Records are the most basic type. The โ€œAโ€ stands for โ€œAddress,โ€ as their function is to tie a domain name or URL directly to an IP address. Hereโ€™s an example:

Examples of A records.

The Host Record column indicates which domain or subdomain the record references, and the โ€œ@โ€ symbolizes the root domain, or the primary domain of your site. The Points To column is the IP address that the domain in the first column points to. TTL stands for โ€œTime to Liveโ€ and tells the DNS how long to cache a query. This is a technical detail that you generally wonโ€™t need to worry about.

Basically, when you type a web address into your browser, the DNS looks up that domain name and then routes your browser to the associated IP address.

CNAME is short for โ€œCanonical Name.โ€ CNAME records are essentially aliases that tie one domain name to another. For example, if you type โ€œelegantthemes.comโ€ into your browser, the DNS directs you to www.elegantthemes.com because there is an alias that points the former to the latter.

CNAME records always point to either an A Record or another CNAME. Hereโ€™s what they look like:

Examples of CNAME records.

For CNAME records, the only difference is that the Points To column will be the web address that the Host Record points to, rather than an IP. For example, the Host Record might be โ€œwwwโ€ and it might point to โ€œexample.comโ€. This would cause www.example.com to redirect to example.com.

The advantage of this is that if you need to edit them, you can simply change the A Record, and all the associated CNAMEs that point to it will update automatically.

Finally, MX or โ€œMail Exchangeโ€ records deal with sending email. They tell the DNS where a particular email address is located. Hereโ€™s an example:

Examples of MX records.

The Priority column assigns each MX record a priority number. If there are multiple records here, the lowest priority is tried first. If it fails to connect, the DNS will go down the list until one works.

So, to summarize, A Records point directly to IP addresses, while CNAMEs point to A Records. MX records point to mail servers and help route emails to their proper destinations.

Why You Might Need to Access Your A Records

For the most part, you shouldnโ€™t need to do much with your A Records. Once a site is up and running, they tend to stay the same, and youโ€™ll rarely be asked to provide them.

However, there are a handful of situations where you may have to access and edit your siteโ€™s A Records. Most notably, you may need them to change web servers, such as if youโ€™ve decided to switch hosting providers or plans, or to migrate your site to your own private server.

You may also need to update your A Records if you change your siteโ€™s domain name but want to keep its content intact. In that case, you can simply change the A Record and the new domain will point to the same location on your web hostโ€™s servers.

Finally, if you create subdomains for your site, you may need to generate A Records for them in order to point them to your server.

How to Access Your A Records (In 3 Steps)

You should be able to access your siteโ€™s A Records through your web hosting account dashboard. For this example, weโ€™ll use Bluehost. However, bear in mind that your providerโ€™s settings may look different. We recommend consulting the relevant documentation or contacting your hostโ€™s support team if you need help.

Step 1: Access Your Web Hostโ€™s Domain Settings

First, youโ€™ll need to log into your hosting account. Then look for the domain settings. Typically this is simply called Domains:

The domain settings on the Bluehost admin page

Clicking into this screen should pull up a list of the domains registered to your account.

Step 2: Locate the DNS Settings

Once youโ€™re on theย Domains page, locate the one you want to edit the records of. Youโ€™re looking for a DNS option. Bluehost users can access this setting by clicking on the dropdown box next to the domain entry and selecting DNS from the list:

Select DNS from the list to edit your A records.

This will take you to a page that lists all the DNS records for that domain.

Step 3: Add, Delete, or Change Your Records

Finally, to add, delete, or change your DNS records, simply select the appropriate option for the one you want to modify. Keep in mind that any changes you make will take some time to propagate across the DNS and take effect (up to 48 hours in some cases).

If you ever need to change CNAME, MX, or any other DNS records, youโ€™d follow the same procedure. Most hosts place all of them on the same page.

Conclusion

The DNS is the secret sauce that makes the internet intuitive to navigate. However, sometimes youโ€™ll have to work directly with the ingredients โ€“ DNS records. Knowing which one does what will help you efficiently navigate this process should the need arise.

A Records are the basic building blocks of the DNS. Theyโ€™re what tie a websiteโ€™s domain name back to the computer itโ€™s hosted on. Without it, weโ€™d be stuck memorizing IP addresses. Meanwhile, CNAME records deal with website aliases, and MX records handle email routing.

Do you have any questions about A Records and how to work with them? Let us know in the comments section below!

Image by O n E studio / shutterstock.com

Divi

Want To Build Better WordPress Websites? Start Here! ๐Ÿ‘‡

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

MonsterInsights Review 2024: Worth It for Site Analytics?

MonsterInsights Review 2024: Worth It for Site Analytics?

Updated on April 16, 2024 in WordPress

Do you want to integrate Google Analytics (GA) on your WordPress website easily? Look no further than MonsterInsights. It offers invaluable insights into your site’s traffic, user behavior, and content engagement. As the leading Google Analytics plugin for WordPress, MonsterInsights empowers...

View Full Post

10 Comments

  1. Given that this post is for the education of those new to the concepts of DNS, A, CNAME and MX records, blurring out the examples really defeats the purpose. The DNS records for any site are publicly accessible, so I don’t understand the need to blur them out.

    • Thanks for your comment, Michael. We’re working on an update to the post to help improve it and make it more helpful to readers.

  2. Hi Will,
    I hope you still remember WIN (Windows Internet Naming)……gone are the days and replaced by DNS. Like your post easy and simple to understand.

    • Happy to hear you liked the post, Neel!

  3. Excellent breakdown! I’ve been making changes to DNS records for years, but always did so on auto-pilot, no really understanding the mechanics. You’ve made what could be a complex subject seem really rather simple! Great article, thanks.

    • Glad you found it helpful, Lee!

  4. The article on dns was helpful. I would like to hear more on the โ€œ hostโ€ naming conventions and exactly what east host is. There seems to be a ton of different host names all within one website.

    • Hi, Tim! I’m glad you found the post informative.

      If you’re looking for more information on host/server naming conventions, there are quite a few articles out there on the topic. You’ll find them quite easily with a quick Google search. Most of them are a few years old, but I think you’ll still find them useful.

  5. These examples would be useful if the critical information wasn’t blurred out. Why not use “example.com” and some obviously fake IP address?

    • Thanks for pointing this out, Thomas. We’ve had to obscure certain information for a variety of reasons, but appreciate that this may limit the usefulness of the post. We’re working on a solution!

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi