DNS Records: A Beginner's Guide to A, CNAME, MX, TXT and more

When you buy a new .au domain, one of first things you'll come across is something called Name server settings. You follow the instructions on screen, paste in a value, and hope it works. Different guides contradict each other, so you end up trying one approach after another with no idea which one actually worked.

Let's take a step back and build a solid understanding of what the Domain Name System (DNS) is really doing behind the scenes, and how you can get the DNS settings right for your .au domain,

What does DNS actually do? #

DNS is the lookup service that turns a name a human can remember, like example.com, into the machine details a computer needs: a server's IP address, a mail server, a verification string.

Those details live in DNS records. The records are held by a nameserver, not by the web server that hosts your site. Your hosting provider runs the server your site sits on, whereas your nameserver answers questions about where that server is. They are often the same company but they don't have to be, and the ability to edit DNS records is a separate thing from your hosting plan.

If the domain-name-to-website part is still confusing, read how your domain name connects web browsers to your website.

DNS record types that you need to know about #

You can think of your domain like a contact card holding a mobile number, a work number, an email, a postal address. A domain holds several records, each answering a different question.

A Record (Address Record) #

An A record acts like a home address, serving as the main hosting address. It connects a domain name to an IPv4 address, allowing web browsers to locate the server hosting the website.

An IPv4 address is essentially a unique number that identifies a device on a network. If a website is migrated to a new server, the A record must be updated to reflect the new server location.

A records only work with IPv4 addresses, which use a 32-bit system, limiting the total number of addresses to around 4 billion. This limitation led to the creation of IPv6 to support the internet's growth.

AAAA (Quad-A Record) #

AAAA records do the same job as an A record, but for a different address family. AAAA records return IPv6 addresses.

IPv6 addresses use a 128-bit scheme, represented in hexadecimal notation, with segments separated by colons. This may sound confusing but it’s really just a way of writing numbers using 16 symbols (0-9 and A-F), which makes it easier to work with computer numbers than using long strings of 0s and 1s.

Both A and AAAA records can list multiple IP addresses on a single domain name. This is how a provider can send visitors to different servers based on load or location, and how a failed server can be worked around without editing anything.

CNAME Record (Canonical Name Record) #

A CNAME record allows one domain name to act as an alias for another main domain, called the canonical domain.

A common example is the “www” version of a website, where www.example.com can point to example.com.

Visitors typing www.example.com are pointed at whatever example.com currently resolves to, so a future change to the A record carries over automatically.

This is particularly useful when different parts of a site run on separate servers. For example, your main website could be on one server, whilst your blog subdomain is on another, but both can still use the same main domain name, maintaining brand consistency.

MX Record (Mail Exchange Record) #

An MX record tells the internet where to deliver emails for your domain, directing incoming emails to the correct mail server. When someone sends you an email their mail server checks your domain’s MX records to find out which server is responsible for handling your emails. Many domains have multiple MX records with priority settings, meaning emails can still arrive even if one server is down, ensuring reliable email delivery.

MX changes are where .au owners most often lose mail. If a domain's nameservers point to one provider but its mail is hosted somewhere else, the MX records must be created at the nameserver, not at the mailbox provider. Deleting existing MX records before adding the replacements creates a window where mail bounces.

TXT Record (Text Record) #

Text records operate as a note attached to your domain providing the internet with important information. As the name suggests, you can store any text you like as a TXT record. There are some formats of TXT records that do specific jobs, for example helping mail systems recognise that you are not a malicious spammer. Examples of things you can do with TXT records include:

  • Verifying domain ownership – For example Google Search Console provides a unique code which, when saved as a TXT record, confirms you as the domain owner and adds the domain to your Search Console.
  • Communicating email sender policies (SPF) – These identify which servers send emails from your domain. A mismatch is a potential sign of spam.
  • Protecting your domain from misuse (DMARC) – Another email-related policy, DMARC works with SPF and guides recipients who are handling suspicious emails.

SRV Record (Service Record) #

SRV records tell the internet where to find a specific service on your domain, like instant messages, voice over, or other applications. They provide the hostname and port numbers, allowing for service discovery without requiring knowledge of the IP address.

SRV follow this specific format:

<code>_service._protocol.example.com</code>

Choosing a Domain Provider #

It's crucial to remember that not all domain providers allow you to create or manage all types of DNS records. Some only allow basic records like A or CNAME, while others may charge extra for premium DNS features.

This is an important consideration to keep in mind when comparing different domain providers. See our comparison table for a side-by-side look at prices and features.

DNS doesn't have to be DIY #

Managing DNS records can seem complicated at first, but understanding what each record does makes things a lot easier. Setting them up correctly helps ensure your website, email, and other online services run smoothly.

If you're unsure, or lack experience with DNS, this is another reason to look for high-quality support when choosing your domain or hosting provider. Their advice and guidance can ensure proper DNS configuration for you.