Domain names form an integral part of the internet. Without domain names, humans would be forced to memorize numbers in order to visit a website, or be at the mercy of whichever websites a search engine decides to index.

At the core of domains is DNS, or the Domain Name System. It’s something we interact with every single day but is often completely unknown to most people.

In this article, we explore one aspect of DNS and outline what DNS record types are and how they function.

What is DNS?

DNS or Domain Name System is a decentralized naming system used to associate an easy to understand domain name such as with an IP address such as DNS consists of a series of standardized protocols so that devices around the world can each understand how to find and connect to the underlying server of a domain name.

What Are DNS Record Types?

One core component of DNS is the DNS zone file. This is a text based file which is stored on the name server of a domain and it contains instructions for all other servers to follow in order to connect to various services hosted on the domain such as a web server or email server.

The DNS zone file contains a variety of DNS records  which each perform a separate function in the DNS process.

See Also: Experience Our for Free VPS Hosting: Enjoy a 30-Day Trial with Risk-Free Servers

What Are the Types of DNS Records?

The DNS zone file contains a variety of DNS query types. Here are some of the most common records:

SOA record

The DNS zone file of every domain must contain an SOA or Start of Authority record. This record contains important information about the domain and how the DNS records should be interpreted. 3599 IN SOA 2033516212 10000 2400 604800 3600

This record contains the following information:

  • The primary name server for the domain:
  • The responsible party for the domain’s DNS:
  • A timestamp that changes whenever you update your domain: 2033516212
  • How often the DNS records for the domain should be refreshed in seconds: 10000
  • The number of seconds before a failed refresh should be retried: 2400
  • The expiry time of the DNS zone file: 604800
  • The default TTL (Time to Live) of  DNS records: 3600

NS Record

At the top of the DNS record types is the NS record. The NS record is a DNS record which indicates the name servers of the domain. The name servers are the servers which serve the DNS records of a particular domain name.

There should be a minimum of two name servers set at both the registrar of the domain and these NS records should match those listed in the DNS zone file. If there is a mismatch, some resolvers may query the name server in the DNS zone file instead of those listed at the registrar, and if that name server is not functional, the domain will not resolve for a user.

A Record

The DNS A record is a DNS commonly used record listed for the root of a domain or a subdomain which indicates the IP address of a web server. For example, has the A record of the IP address as this is the web server which hosts our website.

The dig command can be used in a terminal to return the A record of a domain:   299   IN  A

There should be an A record configured for the root of the domain as well as the www subdomain. An A record can then be configured for any other subdomain of the website such as in order to connect the subdomain to a specific IP address or IP addresses.

A round-robin DNS platform can be used in order to connect a domain A record to multiple IP addresses. When an A record is used in this way, a device would attempt to connect to a second IP address in the event that the connection to the first IP was unsuccessful.

AAAA Record

The AAAA record functions in the same way as an A record, but this record is used for IPv6 addresses instead of IPv4. . IN . AAAA . 2606:4700:10::6814:2ef0

CNAME Record

The CNAME or canonical name record is another commonly used DNS record type which will direct one subdomain of a domain to another hostname. Unlike an A record, the CNAME record type will direct traffic from one subdomain to another subdomain instead of an IP.

For example, could have a CNAME set to so that users visiting would be resolved to

TXT Record

The TXT or text DNS record is used to insert some text into the DNS record when querying the domain. This is most often used by SaaS tools to verify domain ownership. The tool can generate a unique piece of text, and the domain owner would add it to the domain’s DNS record in order to verify ownership.

The TXT records are used when configuring SPF records on a domain. SPF or Sender Policy Framework is an anti-spam system designed to indicate at a domain which mail servers are authorized to send email on behalf of a domain. When a receiving mail server receives mail from a server other than one specified in the domain’s SPF record, it can choose to reject the mail or send it to the spam folder. It’s important that the TXT record be kept up to date with an accurate SPF record, or mail from a domain may be rejected.

See Also: Experience Our for Free VPS Hosting: Enjoy a 30-Day Trial with Risk-Free Servers

In this example, we see that the DNS server TXT records indicate that and are both permitted to relay mail on behalf of”v=spf1 ~all”

MX Record

The MX or Mail Exchange record is a DNS record type which indicates what the mail servers are for a domain.

A domain can have multiple MX records and most domains have at least two MX records for redundancy. MX records are labelled by priority, with 0 being the first MX record to be connected with and the other MX records with a higher number for priority will be connected to if the other MX records cannot be reached. 299  IN MX 10 299  IN  MX   1 299  IN MX 10

In this example, would be the first host to be connected to when attempting to relay mail on the domain. If it is unreachable, then the next two hosts will be attempted.

An MX record hostname should be a hostname with an A record. It is improper to use a CNAME as an MX record as this leaves an extra layer of failure potential in the connection process.

Want More Information?

Record types in DNS are an important aspect of the DNS server infrastructure and every domain owner should understand how they function in order to ensure they are accurate. You can perform a check of your domain record types using a tool such as

The zumiv Knowledge Base contains hundreds of other tutorials on all types of server related topics. Feel free to contact us if you have any questions about setting up or configuring a server for your next project!

What are your feelings


Bare Metal Dedicated Servers

A single tenant, physical server allowing you full access to its resources

Read More

Cloud VPS

The cheapest way to get your own independent computing instance.
Read More

Cloud VDS

Virtualized server platform hosted on enterprise-grade physical servers
Read More

10 Gbps Unmetered Servers

Zumiv offers high bandwidth dedicated servers up to 20Gbps.
Read More
free vps hosting qca50satdzdvwwiktdobzdsj43rc5tgslgo4e8d8lg qjmota74oi2zrgboohj848ng55q3ywzsnke3rxmdvo


Receive the latest news, updates and offers. You can unsubscribe at any time.


Receive the latest news, updates and offers. You can unsubscribe at any time.

zomiv footer logo


Support Hours: 24x7x365
Sale Office Hours: M-F, 7AM-5PM EST

We accept the following:

download (6)



© Copyright 2024, All Rights Reserved by DataCamp Int Limited.

Zomev is a trading name of DataCamp Int Limited. Registered Office: 71-75 Shelton Street, Covent Garden,
London, United Kingdom, WC2H 9JQ.Registered Number 15527709. Registered in England and Wales.



Receive the latest news, and offers. You can unsubscribe at any time.