DNS Records Explained: A, AAAA, CNAME, MX and TXT
Find the place to edit first
DNS records are published by the domain's authoritative nameservers. Your registrar sets the delegation, but DNS can be managed in another account. Look up the domain's nameservers and compare them with the DNS service you intend to edit. An edit in an old hosting panel has no public effect if the domain no longer uses that panel's nameservers.
| Record | What the value represents |
|---|---|
| A | IPv4 address. |
| AAAA | IPv6 address. |
| CNAME | Target hostname for an alias. |
| MX | Receiving mail server hostname, with a priority. |
| TXT | Text such as service verification or an SPF policy. |
Pick the record for the task
An A record points a name to an IPv4 address. AAAA does the same for IPv6. A CNAME aliases one hostname to another hostname, such as when a website platform asks you to connect www.example.com. A CNAME generally cannot coexist with other records at the same name. If you need an alias at the domain apex, follow the DNS provider's documented apex option.
An MX record specifies the hostname that accepts incoming mail for a domain. Its priority affects which server is tried first. A TXT record carries text used for things such as service verification or SPF. Copy the exact hostname and value from the service's instructions. A value for receiving mail belongs in a different field from the text that authorizes outgoing senders.
Verify what changed
Save the old record, then edit only the entries required for your task. Check the intended hostname after publishing and compare the authoritative answer with the answer from a normal resolver. A cached old value may remain until its time to live expires. If the authoritative answer is wrong, inspect the record name and the active zone before waiting longer.
Open the website using the precise names you edited. If the web address works but the mail changes unexpectedly, compare the current mail records to your exported copy. Website hosting and business email can run at separate providers on the same domain.
If a host asks you to point the root domain at a hostname, read when to use CNAME flattening at the domain apex before editing the zone.
Related resources
- DNS TTL and Propagation: How to Check a Change
- How to Check SPF, DKIM and DMARC in an Email Header
- What Is Web Hosting?
Official references
Ferkesh Hosting. Last reviewed .
Continue with these guides
- Nameservers and DNS Delegation Explained
- How to Set A and AAAA Records Safely
- How to Create a CNAME Record for a Subdomain
- How to Check MX Records for Incoming Mail
- How to Add a DNS TXT Verification Record
- Diagnose NXDOMAIN and SERVFAIL DNS Errors
When a service publishes its own discovery record, learn how to read an SRV record’s service, target and port.
Obrigado pela sua opinião!