> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# What are the different types of DNS records?

There are several types of [DNS](https://help.ex2.com/en/article/what-is-an-mx-record-1nkj8i7/?bust=1784819874394) records. Each has specific roles and functions. Here is a short list of the main ones to help you distinguish them and understand their respective uses.

## The most common DNS record types

* [A](https://help.ex2.com/en/article/what-is-an-a-record-eaqi9i/?bust=1783450361302): This record is used to match a DNS name to an ipv4 IP address.
 Example:   www.mondomaine.com.   IN A 212.27.35.185

* **AAAA**: This DNS record is used to match a DNS name to an ipv6 IP address.
 Example:   irc.mondomaine.com.   IN AAAA 2b04:ehf:1:f:3p0:c4ff:fia5:4da0

* [CNAME](https://help.ex2.com/en/article/what-is-a-cname-record-10tdlub/?bust=1783450432599): This type of record is used to match two DNS names.
 Example:   sql.mondomaine.ext.   IN CNAME mysql1.unautredomaine.ext.

* [MX](https://help.ex2.com/en/article/what-is-an-mx-record-1nkj8i7/?bust=1783450361175): An MX record allows you to configure for a given DNS area (associated with mail servers) in the form of a DNS name.
 Example:   mondomaine.com.   IN MX 10 mondomaine.com.

 The DNS name used in an MX record must be of type A. It is not possible to use an IP or a CNAME record.
 The figure represents the priority level. This is the order in which mail servers must be contacted if there is more than one.

* **TXT**: This record stores a string of up to 1024 characters. As the name indicates, it is used to add text elements. 

* **URL Redirect**: This record allows you to redirect your domain (or subdomain) to another web address. The redirect is not displayed in the URL address bar.

* **URL Frame**: Like the Redirect URL, this record does the redirect to the specified website. However, it differs by displaying the redirected domain name in the URL bar