Knowledge Base
Save up to  70% off.  Start your website today!

What is DNS?

Are you starting out on your journey to hosting a website and looking for support articles to better understand how DNS records work and how you can manage them yourself within your control panel? For more information about DNS records, please check out the article: If you're looking into managing your DNS records in your hosting account, you may use this article as a guide:

Like a letter in the post office, an address or coordinates is needed to locate a website on the internet world. A domain name system, also known as DNS, is the internet's answer to the Post Master. This article will explain the various parts of DNS and how each record type has a purpose.

Name Servers

Name Servers, also referred to as NS records, are the primary records in DNS that make an IP address answer back to a domain name on a server. If it weren't for name servers, people would need to use IP addresses to pull up websites rather than a domain name, making web addresses a lot harder to remember.

For example, the IP address:

Resolves to the domain:


For more information on Name Servers and how to edit them, please refer to the following articles:

A Records

Address records, also known as A records, are the other side to name servers. Address records point a domain to an IP address on a server, making it resolve to a specified IP address.

For information on how to change your A records and other DNS records, please refer to the following articles:


Canonical Name records, better known as CNAME records, serve as aliases for domain names of another canonical domain name. This normally works best for pointing domains with a subfolder to a subdomain under the same primary domain name.

A prime example of how this works is by using the URL:


When the site resolves, you will see that it is the same as the domain:


For information on how to change your CNAME records, please refer to the following articles:

MX Records

Mail Exchange records, also known as MX records, are the primary records that direct email for a domain name. These records work in conjunction with the A records and NS records to direct the email received for a domain name to the proper mail server. Usually, MX records are prioritized with a number of preferences that will indicate which mail servers should be used when there are several listed.

For information on how to change your A records and other DNS records, please refer to the following articles:

PTR Records

Reverse DNS records, also known as a pointer or PTR records, are used to resolve IPs to a domain name and vice versa. That means you can make hostgator.com point to and make a PTR record so that, if checked, would tell you that it belongs to hostgator.com. It also allows the receiver of your emails to check for possible spoof emails, which will be treated as spam. Without this record, the receiver must rely on guessing if your email might be spam.

For more information on PTR records, please read:

TXT  Records

Text records, better known as TXT records, are custom records that contain human-readable data. TXT records are dynamic and can be used for several purposes, such as verifying domain ownership for services such as Google Workspace.

SRV Record

Service records, also known as SRV records, are used to point one domain to another domain name using a specific destination port. SRV records allow specific services, such as VOIP or IM, to be directed to a separate location.

AAAA Record

An AAAA record points a domain or subdomain to an IPv6 address in the same way that an A record does; however, A records use IPv4 addresses only. Currently, HostGator does not support IPV6 addresses.


Did you find this article helpful?

* Your feedback is too short