Hosting & DNS

Understand DNS A, AAAA, CNAME, MX and TXT Records

Step-by-step understand dns a, aaaa, cname, mx and txt records guide with prerequisites, configuration, verification, troubleshooting, and security tips.

Scope: Commands are examples, not one-click installers. Confirm current upstream documentation and test changes on staging first.

Guide workflowPrepareInstallConfigureVerifySecure
Follow each stage in order; test changes before using them in production.

Before you begin

This tutorial is intended for administrators managing a compatible VPS or hosting environment. Requirements: Domain and access to its authoritative DNS zone. Shared hosting accounts generally do not permit installing system services. Confirm your operating system and package versions before proceeding.

Install

Connect to your server with a non-root account that has the necessary permissions. Review each command before running it; commands below are examples for the stated environment. Replace example.com, usernames, paths and placeholder passwords with your own values.

dig NS example.com
dig A example.com
dig MX example.com

Configure

Configuration is specific to your domain, hosting account, application and security requirements. Never paste placeholder credentials into a production configuration.

In the DNS control panel, set A/AAAA for addresses, CNAME for aliases, MX for mail routing, TXT for SPF/DKIM/verification; use actual provider values.

Verify the result

Run the check below and inspect the output. A successful command is only the first check; also test the service from a browser or a second device where applicable.

dig +short A example.com

Troubleshooting

If changes do not appear, verify authoritative nameservers and record TTL.

Security and maintenance

Never replace working MX or SPF records without recording their values.

Next steps

Save a copy of your configuration, document the versions installed, schedule backups where data is involved, and monitor for upstream security updates. For account-specific control-panel instructions, use the WebsiteHost.us support database.

← All 40 guides · Hosting control panel help