A Beginner's Guide to DNS Records (Explaining A, CNAME, MX, and TXT records).

PalmHost Logo

A Beginner's Guide to DNS Records

The Domain Name System (DNS) is often described as the phonebook of the internet. While computers communicate using complex numerical IP addresses (like 192.0.2.1), humans prefer memorable names like palmhost.co.za. DNS is the technology that performs the silent, instant translation between these two formats. When you manage your own domain, understanding the core DNS records is essential for keeping your website live, your email hosting operational, and your digital services properly routed.

You can think of your DNS zone file as a master instruction manual for your domain. It contains various entries, each telling the internet exactly where to look for specific services. In this guide, we will demystify the most common DNS records you will encounter inside your cPanel Zone Editor.

The Anatomy of a DNS Record

Every DNS record consists of four key components: the Name (which host or subdomain the record applies to), the Type (what kind of data it handles), the TTL (Time To Live, which dictates how long a server should remember the record before checking for updates), and the Value (the destination IP address, hostname, or text data).

Common DNS Record Types

1. A Record (Address Record)

The A record is the most fundamental DNS entry. It maps a domain or subdomain directly to an IPv4 address. When you type yourdomain.co.za into your browser, the A record is what directs the traffic to the specific server where your website files are hosted.

Use Case: Pointing your root domain (or a subdomain like blog.yourdomain.co.za) to your web hosting server.

2. CNAME Record (Canonical Name Record)

A CNAME record acts as an alias. Instead of pointing to an IP address, it points a subdomain to another hostname. This is incredibly useful because if your server's IP address changes, you only need to update the primary A record, and every CNAME pointing to it will automatically reflect the change.

Use Case: Pointing www.yourdomain.co.za to yourdomain.co.za, or pointing a subdomain to an external service like a Google Drive or a custom app platform.

3. MX Record (Mail Exchanger Record)

MX records are essential for your business email. They direct incoming email traffic for your domain to the specific mail server responsible for handling your messages. Without a correctly configured MX record, you will be unable to receive emails, even if your account is active.

Use Case: Directing mail traffic to the PalmHost mail server to ensure your staff receives their messages reliably.

4. TXT Record (Text Record)

TXT records are versatile entries used to store human-readable information, but in modern web hosting, they are primarily used for domain verification and security. This is where you will input your SPF, DKIM, and DMARC security protocols to prevent spam and spoofing.

Use Case: Verifying domain ownership with Google Workspace, or adding the security protocols needed to improve email deliverability.

Summary Table of DNS Records

Record TypePurposeDestination
A RecordMaps Domain to IPIPv4 Address
CNAMEAlias for a HostnameAnother Domain/Subdomain
MXDirects Email TrafficMail Server Hostname
TXTVerification & SecurityText String (SPF/DKIM/etc)

How to Edit DNS Records in cPanel

If you have completed your domain registration and your site is hosted with us, you can manage these records directly within your dashboard. Be extremely cautious; a single incorrect character can take your website or email offline instantly.

Accessing the zone editor

Step 1: Open Zone Editor

Log in to your cPanel dashboard and locate the "Domains" section. Click on the Zone Editor icon. This tool allows you to view and edit the master file that controls your domain's routing.

Managing specific domains

Step 2: Locate Your Domain

You will see a list of domains associated with your account. Locate your primary domain and click on the Manage button.

Adding or editing records

Step 3: Modify Entries

You will see a table of all your current DNS entries. You can click "Edit" to modify an existing record or use the "Add Record" dropdown to create a new one. Once you make changes, click the "Save Record" button to push the update to the server.

Crucial Warning: DNS changes take time to "propagate" (update) across the internet. After you click save, it can take anywhere from a few minutes to 48 hours for the new settings to be recognised globally. Do not assume your change failed just because it is not working five minutes later.

When to Seek Technical Support

Managing DNS records is a powerful responsibility. For small business owners, it is rarely necessary to change these records frequently. However, if you are integrating third-party marketing tools, setting up Google Workspace, or migrating your email, you will need to touch these settings.

If you are planning a complex infrastructure change, or if you are worried about potentially causing downtime, our team is happy to assist. For high-traffic sites, consider our managed hosting services, where our technicians handle all complex DNS routing and security configurations on your behalf. If you have made a mistake and lost access to your site, navigate to our contact us portal to open a support ticket immediately—we will swiftly restore your DNS zone to its functional state.

```
Please rate this article to help us improve our Knowledge Base.

0 0