DNS Records Explained: A, AAAA, CNAME, MX, TXT and NS
DNS records are essential to how the internet works. Whenever you visit a website, send an email, or connect to an online service, the Domain Name System (DNS) helps direct your request to the correct destination.
But what exactly are DNS records, and what do A, AAAA, CNAME, MX, TXT, and NS mean?
In this guide, we'll explain the most important DNS record types, provide practical examples, and show you how to check your domain's DNS configuration using [IPZW Network Tools](https://whatismyipaddress.co.zw/dns-lookup).
## What Is DNS?
DNS stands for **Domain Name System**.
It translates human-readable domain names, such as `example.com`, into information that computers use to locate internet services.
For example, when you enter a website address into your browser, DNS can help your device determine which IP address to connect to.
DNS is often described as the internet's phonebook, although it supports much more than looking up IP addresses.
## What Are DNS Records?
DNS records are pieces of information stored in DNS zones.
Different record types serve different purposes, including directing website visitors, routing email, verifying domain ownership, and identifying authoritative name servers.
Understanding DNS records is particularly useful when:
- Connecting a domain to a website hosting provider.
- Configuring business email.
- Moving a website to another server.
- Troubleshooting website accessibility.
- Verifying domain ownership for online services.
## 1. A Record β IPv4 Address
An **A record** connects a domain name to an IPv4 address.
For example:
`example.com β 192.0.2.10`
In this example, a DNS lookup for `example.com` returns the IPv4 address `192.0.2.10`.
The address shown is an example reserved for documentation, not a real hosting recommendation.
### When is an A record used?
A records are commonly used to connect domain names to web servers.
If you change hosting providers, you may need to update your domain's A record to point to the new server's IPv4 address.
An incorrect A record can cause website visitors to reach the wrong server or fail to connect.
## 2. AAAA Record β IPv6 Address
An **AAAA record** performs a similar function to an A record but points to an IPv6 address.
For example:
`example.com β 2001:db8::10`
IPv6 provides a much larger address space than IPv4.
A website can have both A and AAAA records, allowing supported devices to connect over either IP version.
### What if my domain has no AAAA record?
That isn't necessarily a problem.
Many websites still operate using IPv4 only.
If your DNS lookup returns zero AAAA records, it may simply mean that your domain has not been configured with an IPv6 address.
## 3. CNAME Record β Canonical Name
A **CNAME record** makes one domain name an alias of another hostname.
For example:
`www.example.com β example.com`
This means the `www` hostname points to another domain name instead of directly storing an IP address in that CNAME record.
### When should you use CNAME records?
They are commonly used for:
- Website subdomains.
- External services that require a hostname alias.
- Certain content delivery networks.
- Domain verification configurations, when requested by a provider.
A CNAME generally cannot coexist with other ordinary DNS records at the same hostname.
For this reason, you should avoid adding conflicting records without checking your DNS provider's requirements.
## 4. MX Record β Mail Exchange
An **MX record** tells email systems which mail servers receive email for a domain.
For example:
`example.com β mail.example.com`
MX records also have priority values.
When a domain has multiple MX records, the lowest preference number is normally tried first.
### Why are MX records important?
If you use a business email address such as `info@example.com`, correctly configured MX records help other mail servers deliver incoming messages.
Incorrect MX records can cause emails to be delayed, rejected, or routed to the wrong mail system.
### Example: Moving from cPanel email to Microsoft 365
When migrating your domain email to Microsoft 365, you normally need to update the MX record according to the exact values provided by Microsoft.
You may also need to configure SPF, DKIM and DMARC records.
Changing MX records does not automatically transfer your existing emails from the old provider.
## 5. TXT Record β Text Information
A **TXT record** stores text associated with a DNS hostname.
TXT records are commonly used for:
- Domain ownership verification.
- SPF email authentication.
- DKIM public keys.
- DMARC email policies.
- Third-party service configuration.
### Example: SPF Record
An SPF record is published as a TXT record and specifies which servers are authorized to send email on behalf of a domain.
For example:
`v=spf1 include:_spf.example.net -all`
This is an illustrative SPF policy, not one you should copy directly into your own DNS settings.
Always use the SPF configuration recommended by your actual email provider.
## 6. NS Record β Name Server
An **NS record** identifies the authoritative name servers responsible for a DNS zone.
For example:
`example.com β ns1.example.net`
Name servers are responsible for providing authoritative DNS information about a domain.
When you change your domain's name servers, you may also change which DNS provider controls the domain's records.
### Important warning
Before changing name servers, ensure that the new DNS provider has all the records your website, email, and other services require.
Missing records can cause service interruptions.
## Other Important DNS Record Types
Although A, AAAA, CNAME, MX, TXT, and NS are among the most commonly used records, several others are important.
### PTR Record
A PTR record maps an IP address to a hostname through reverse DNS.
Mail servers sometimes use reverse DNS information when evaluating incoming email connections.
### SOA Record
The Start of Authority record contains administrative information about a DNS zone, including its primary name server, serial number, and timing parameters.
### CAA Record
A Certification Authority Authorization record specifies which certificate authorities are permitted to issue certain TLS certificates for a domain.
### DS and DNSKEY Records
DS and DNSKEY records are associated with DNSSEC, a technology designed to provide authentication of DNS responses.
A DS record helps connect the DNSSEC chain of trust between a parent zone and a child zone.
DNSKEY records publish the public keys used in DNSSEC validation.
Not all DNS lookup tools or hosting environments support querying these records directly.
## How to Check DNS Records Online
You can use [IPZW DNS Lookup](https://whatismyipaddress.co.zw/dns-lookup) to inspect supported DNS record types.
Follow these steps:
1. Open the DNS Lookup tool.
2. Enter a domain name, such as `example.com`.
3. Choose the DNS record type you want to inspect.
4. Click **Search DNS**.
5. Review the records returned by the resolver.
IPZW uses its server's configured DNS resolver for supported lookups. Results are not a worldwide DNS propagation comparison.
A result showing zero records does not automatically mean a problem exists. Some record types are optional.
## Common DNS Problems and Their Causes
### My Website Is Not Loading
Possible DNS-related causes include an incorrect A record, an incorrect AAAA record, or name servers pointing to a DNS zone that lacks the necessary entries.
However, website downtime can also result from hosting errors, expired SSL certificates, firewall restrictions, or application failures.
### My Emails Are Not Arriving
Check that your MX records point to the correct email provider.
Also review any relevant email authentication settings. SPF, DKIM, and DMARC influence authentication and delivery decisions but do not replace MX records.
### My DNS Changes Are Not Appearing
DNS responses may remain cached until their time-to-live (TTL) expires.
Different recursive resolvers may therefore return different answers during a DNS change.
The total time required depends on caching, the type of change, and the configuration involved.
### My DNS Lookup Shows No CNAME Record
This can be completely normal.
Not every hostname needs a CNAME record. A domain can use A and AAAA records directly instead.
## Frequently Asked Questions
### What is the difference between an A record and a CNAME record?
An A record points directly to an IPv4 address. A CNAME record creates an alias pointing to another hostname.
### What is the difference between an A record and an AAAA record?
An A record contains an IPv4 address, while an AAAA record contains an IPv6 address.
### Can a domain have multiple MX records?
Yes. A domain can publish multiple MX records with different preference values for routing incoming email.
### Can I have multiple TXT records?
Yes. A domain can have multiple TXT records for different purposes. However, certain record types and policies, such as SPF, have rules that must be followed to avoid configuration errors.
### Does changing DNS delete my website?
No. DNS changes do not directly delete website files. However, incorrect records can make your website or email services inaccessible.
### Can I check DNS records for any domain?
You can generally query publicly available DNS records for domains you don't own. Private DNS configurations and certain internal network records may not be visible publicly.
## Conclusion
Understanding DNS records is an essential skill for anyone who manages websites, email accounts, hosting services, or internet infrastructure.
Remember these key differences:
- **A:** Connects a hostname to an IPv4 address.
- **AAAA:** Connects a hostname to an IPv6 address.
- **CNAME:** Creates an alias for another hostname.
- **MX:** Directs incoming email to mail servers.
- **TXT:** Stores text used for verification and other configurations.
- **NS:** Identifies authoritative name servers.
Whether you're configuring a website, troubleshooting email delivery, or learning networking fundamentals, understanding DNS records can help you identify and resolve problems more effectively.
Try the free [IPZW DNS Lookup Tool](https://whatismyipaddress.co.zw/dns-lookup) and explore more networking resources at [IPZW Network Tools](https://whatismyipaddress.co.zw/).
But what exactly are DNS records, and what do A, AAAA, CNAME, MX, TXT, and NS mean?
In this guide, we'll explain the most important DNS record types, provide practical examples, and show you how to check your domain's DNS configuration using [IPZW Network Tools](https://whatismyipaddress.co.zw/dns-lookup).
## What Is DNS?
DNS stands for **Domain Name System**.
It translates human-readable domain names, such as `example.com`, into information that computers use to locate internet services.
For example, when you enter a website address into your browser, DNS can help your device determine which IP address to connect to.
DNS is often described as the internet's phonebook, although it supports much more than looking up IP addresses.
## What Are DNS Records?
DNS records are pieces of information stored in DNS zones.
Different record types serve different purposes, including directing website visitors, routing email, verifying domain ownership, and identifying authoritative name servers.
Understanding DNS records is particularly useful when:
- Connecting a domain to a website hosting provider.
- Configuring business email.
- Moving a website to another server.
- Troubleshooting website accessibility.
- Verifying domain ownership for online services.
## 1. A Record β IPv4 Address
An **A record** connects a domain name to an IPv4 address.
For example:
`example.com β 192.0.2.10`
In this example, a DNS lookup for `example.com` returns the IPv4 address `192.0.2.10`.
The address shown is an example reserved for documentation, not a real hosting recommendation.
### When is an A record used?
A records are commonly used to connect domain names to web servers.
If you change hosting providers, you may need to update your domain's A record to point to the new server's IPv4 address.
An incorrect A record can cause website visitors to reach the wrong server or fail to connect.
## 2. AAAA Record β IPv6 Address
An **AAAA record** performs a similar function to an A record but points to an IPv6 address.
For example:
`example.com β 2001:db8::10`
IPv6 provides a much larger address space than IPv4.
A website can have both A and AAAA records, allowing supported devices to connect over either IP version.
### What if my domain has no AAAA record?
That isn't necessarily a problem.
Many websites still operate using IPv4 only.
If your DNS lookup returns zero AAAA records, it may simply mean that your domain has not been configured with an IPv6 address.
## 3. CNAME Record β Canonical Name
A **CNAME record** makes one domain name an alias of another hostname.
For example:
`www.example.com β example.com`
This means the `www` hostname points to another domain name instead of directly storing an IP address in that CNAME record.
### When should you use CNAME records?
They are commonly used for:
- Website subdomains.
- External services that require a hostname alias.
- Certain content delivery networks.
- Domain verification configurations, when requested by a provider.
A CNAME generally cannot coexist with other ordinary DNS records at the same hostname.
For this reason, you should avoid adding conflicting records without checking your DNS provider's requirements.
## 4. MX Record β Mail Exchange
An **MX record** tells email systems which mail servers receive email for a domain.
For example:
`example.com β mail.example.com`
MX records also have priority values.
When a domain has multiple MX records, the lowest preference number is normally tried first.
### Why are MX records important?
If you use a business email address such as `info@example.com`, correctly configured MX records help other mail servers deliver incoming messages.
Incorrect MX records can cause emails to be delayed, rejected, or routed to the wrong mail system.
### Example: Moving from cPanel email to Microsoft 365
When migrating your domain email to Microsoft 365, you normally need to update the MX record according to the exact values provided by Microsoft.
You may also need to configure SPF, DKIM and DMARC records.
Changing MX records does not automatically transfer your existing emails from the old provider.
## 5. TXT Record β Text Information
A **TXT record** stores text associated with a DNS hostname.
TXT records are commonly used for:
- Domain ownership verification.
- SPF email authentication.
- DKIM public keys.
- DMARC email policies.
- Third-party service configuration.
### Example: SPF Record
An SPF record is published as a TXT record and specifies which servers are authorized to send email on behalf of a domain.
For example:
`v=spf1 include:_spf.example.net -all`
This is an illustrative SPF policy, not one you should copy directly into your own DNS settings.
Always use the SPF configuration recommended by your actual email provider.
## 6. NS Record β Name Server
An **NS record** identifies the authoritative name servers responsible for a DNS zone.
For example:
`example.com β ns1.example.net`
Name servers are responsible for providing authoritative DNS information about a domain.
When you change your domain's name servers, you may also change which DNS provider controls the domain's records.
### Important warning
Before changing name servers, ensure that the new DNS provider has all the records your website, email, and other services require.
Missing records can cause service interruptions.
## Other Important DNS Record Types
Although A, AAAA, CNAME, MX, TXT, and NS are among the most commonly used records, several others are important.
### PTR Record
A PTR record maps an IP address to a hostname through reverse DNS.
Mail servers sometimes use reverse DNS information when evaluating incoming email connections.
### SOA Record
The Start of Authority record contains administrative information about a DNS zone, including its primary name server, serial number, and timing parameters.
### CAA Record
A Certification Authority Authorization record specifies which certificate authorities are permitted to issue certain TLS certificates for a domain.
### DS and DNSKEY Records
DS and DNSKEY records are associated with DNSSEC, a technology designed to provide authentication of DNS responses.
A DS record helps connect the DNSSEC chain of trust between a parent zone and a child zone.
DNSKEY records publish the public keys used in DNSSEC validation.
Not all DNS lookup tools or hosting environments support querying these records directly.
## How to Check DNS Records Online
You can use [IPZW DNS Lookup](https://whatismyipaddress.co.zw/dns-lookup) to inspect supported DNS record types.
Follow these steps:
1. Open the DNS Lookup tool.
2. Enter a domain name, such as `example.com`.
3. Choose the DNS record type you want to inspect.
4. Click **Search DNS**.
5. Review the records returned by the resolver.
IPZW uses its server's configured DNS resolver for supported lookups. Results are not a worldwide DNS propagation comparison.
A result showing zero records does not automatically mean a problem exists. Some record types are optional.
## Common DNS Problems and Their Causes
### My Website Is Not Loading
Possible DNS-related causes include an incorrect A record, an incorrect AAAA record, or name servers pointing to a DNS zone that lacks the necessary entries.
However, website downtime can also result from hosting errors, expired SSL certificates, firewall restrictions, or application failures.
### My Emails Are Not Arriving
Check that your MX records point to the correct email provider.
Also review any relevant email authentication settings. SPF, DKIM, and DMARC influence authentication and delivery decisions but do not replace MX records.
### My DNS Changes Are Not Appearing
DNS responses may remain cached until their time-to-live (TTL) expires.
Different recursive resolvers may therefore return different answers during a DNS change.
The total time required depends on caching, the type of change, and the configuration involved.
### My DNS Lookup Shows No CNAME Record
This can be completely normal.
Not every hostname needs a CNAME record. A domain can use A and AAAA records directly instead.
## Frequently Asked Questions
### What is the difference between an A record and a CNAME record?
An A record points directly to an IPv4 address. A CNAME record creates an alias pointing to another hostname.
### What is the difference between an A record and an AAAA record?
An A record contains an IPv4 address, while an AAAA record contains an IPv6 address.
### Can a domain have multiple MX records?
Yes. A domain can publish multiple MX records with different preference values for routing incoming email.
### Can I have multiple TXT records?
Yes. A domain can have multiple TXT records for different purposes. However, certain record types and policies, such as SPF, have rules that must be followed to avoid configuration errors.
### Does changing DNS delete my website?
No. DNS changes do not directly delete website files. However, incorrect records can make your website or email services inaccessible.
### Can I check DNS records for any domain?
You can generally query publicly available DNS records for domains you don't own. Private DNS configurations and certain internal network records may not be visible publicly.
## Conclusion
Understanding DNS records is an essential skill for anyone who manages websites, email accounts, hosting services, or internet infrastructure.
Remember these key differences:
- **A:** Connects a hostname to an IPv4 address.
- **AAAA:** Connects a hostname to an IPv6 address.
- **CNAME:** Creates an alias for another hostname.
- **MX:** Directs incoming email to mail servers.
- **TXT:** Stores text used for verification and other configurations.
- **NS:** Identifies authoritative name servers.
Whether you're configuring a website, troubleshooting email delivery, or learning networking fundamentals, understanding DNS records can help you identify and resolve problems more effectively.
Try the free [IPZW DNS Lookup Tool](https://whatismyipaddress.co.zw/dns-lookup) and explore more networking resources at [IPZW Network Tools](https://whatismyipaddress.co.zw/).