A DNS record (Domain Name System record) is an entry in the Internet’s DNS (Domain Name System) database that associates domain names with their corresponding IP addresses or other information. The DNS system is used to make it easier for people to remember domain names, whilst computers use IP addresses for internet communication. Individual DNS records contain information relating to a specific domain, such as IP addresses, server names, mail servers, databases, etc. Various tools and programs are available for storing and managing DNS records, such as DNS servers, DNS clients and web-based interfaces through which the database can be maintained. The DNS system enables efficient and secure internet communication and is essential to the functioning of the internet.
Below is a list of the most common types of DNS records:
- An A record (Address Record): An A record associates an IP address with a domain name.
- MX record (Mail Exchange Record): An MX record contains a list of mail servers assigned to a domain name and is used to determine which mail server should receive email messages associated with that domain name.
- CNAME record (Canonical Name Record): A CNAME record associates an alias domain name with an actual domain name, i.e. it specifies which domain name provides the same service.
- TXT record (Text Record): A TXT record can store various types of information, such as the name of the owner of a given domain name, services associated with the domain name, and security information, such as SPF records.
- AAAA record (IPv6 Address Record): The AAAA record associates an IPv6 address with a domain name.
- SRV record (Service Record): The SRV record contains information relating to services, such as which server provides the service and on which port it is accessible.
In addition, there are other types of DNS records, such as the NS record (Name Server Record), the PTR record (Pointer Record) and the SOA record (Start of Authority Record), but these are less common.
The record
An A record (Address Record) is a type of DNS record that associates an IPv4 address with a domain name. A records are one of the most commonly used types of DNS records and are crucial for internet communication, as they allow people to easily remember domain names, whilst computers use IP addresses to route traffic. The records can be configured via the domain registrar or the DNS provider, and it usually takes a few hours or even up to a day for the records to be updated.
To illustrate, if a user enters the domain name “www.pelda.hu” into their web browser, the browser uses the DNS system to look up the A record associated with the “www.pelda.hu” domain and retrieves the IP address, for example “192.0.2.1”. The browser then connects to the web server associated with that IP address and displays the web page to the user. It is also important to note that updating DNS records can take time, and changes do not take effect immediately everywhere in the world; due to the structure of the DNS system, it can take anywhere from hours to days for them to propagate.
AAAA record
The AAAA record (Address Record for IPv6) is a type of DNS record that associates an IPv6 address with a domain name. IPv6 (Internet Protocol version 6) is a newer version of the Internet Protocol, designed to address the shortage of IP addresses caused by the exhaustion of IPv4 addresses. IPv6 addresses are longer and consist of more octets than IPv4 addresses, and AAAA records are used to identify the corresponding IPv6 addresses for domain names.
AAAA records can be configured via the domain registrar or DNS provider, and generally have priority values similar to those of A records, which indicate which IPv6 address should take precedence if multiple AAAA records are configured for a single domain. AAAA records are important for IPv6-compatible websites, as modern web browsers are capable of connecting to websites with IPv6 addresses, and AAAA records ensure that the correct IP addresses are associated with domain names.
The AAAA record is useful when websites have IPv6 addresses and are accessible from the IPv6 network. The exhaustion of IPv6 addresses is not yet as critical as that of IPv4 addresses, but they will become increasingly important on the internet in the future, and AAAA records enable the efficient management of IPv6 addresses via the DNS system.
MX record
An MX record (Mail Exchange Record) is a type of DNS record that lists the mail servers associated with a domain name. MX records are used to specify which mail server should receive email messages for a particular domain. Configuring MX records is important for organisations or websites that use email communication, as they ensure that emails are routed to the correct mail servers where the recipients’ mailboxes are located.
MX record values are usually priority numbers that indicate which mail server should be given priority if multiple MX records are configured for a domain. MX record priority numbers can range from 1 to 10, with 1 indicating the highest priority. If the primary mail server is unavailable, email messages are forwarded to the next MX record, and so on, until they reach an available mail server.
MX records can be configured via your domain registrar or DNS provider, and it usually takes a few hours or even up to a day for the settings to take effect, as the new entries need to propagate through the DNS system. Configuring MX records is an important step when setting up email services and contributes to more efficient and reliable email communication.
CNAME record
A CNAME record (Canonical Name Record) is a type of DNS record that associates one domain name with another, actual domain name. CNAME records are generally used when one domain name is required to provide the same service as another domain name, or when it refers to the details of another domain name.
CNAME records are useful, for example, when different versions of a website are hosted on the same server and are accessible via different domain names. In this case, CNAME records are used to associate the domain names belonging to the websites with a single IP address, and web browsers display the correct websites to users.
The advantage of using CNAME records is that, if the location of a particular service changes, only its IP address needs to be updated, whilst the domain name remains the same. However, setting up CNAME records can generally be slower than setting up A or MX records, as the DNS server must resolve the CNAME records to the IP address associated with the actual domain name. This means that using CNAME records may slightly slow down your internet connection.
CNAME records can be configured via your domain registrar or DNS provider, and they allow individual domain names to easily point to other domain names.
TXT record
A TXT record (Text Record) is a type of DNS record that stores text information associated with a specific domain name. TXT records can store various types of information, such as the name of the domain name’s owner, services associated with the domain name, and security information, such as SPF (Sender Policy Framework) entries.
SPF is a standardised protocol that helps protect against email spam. SPF records store a list of authorised email senders for a given domain in TXT records, thereby helping to control email traffic so that email messages are only accepted from servers listed in the SPF record. TXT records can also be used to identify domain holders and to configure online security services, such as the DNSSEC or DKIM protocols.
TXT records are usually configured via the domain registrar or DNS provider, and it can typically take a few hours or even up to a day for the records to be updated. The use of TXT records facilitates secure and efficient communication on the internet, and they are one of the key types of DNS records.
NS record
An NS record (Name Server Record) is a type of DNS record that stores the DNS servers associated with a given domain name. NS records are essential for internet communication, as they enable the DNS system to determine which servers manage the DNS for a given domain name.
NS records typically contain the names and IP addresses of two or more DNS servers associated with a given domain name, which are responsible for serving that domain name. NS records can be configured via the domain’s registrar or DNS provider. Configuring NS records is an important step when setting up DNS services, as without selecting the appropriate DNS servers, the domain name in question will not be accessible on the internet.
When a user attempts to access a particular domain name, their browser or application first queries the DNS servers to obtain the corresponding IP addresses. NS records identify the DNS servers to which DNS queries should be directed and help ensure the efficient operation of the DNS system.
It is important to note that NS records can usually only be modified via the domain registrar or the DNS service provider, as DNS servers are used to serve numerous clients, and any changes to the settings can have a wide-ranging impact on the domain in question and its holders.
SOA record
The SOA record (Start of Authority Record) is a type of DNS record that defines the starting point of the DNS zone associated with a given domain. SOA records typically contain the name and IP address of the domain name’s top-level DNS server, as well as the name of the DNS zone owner and information regarding updates to that zone.
SOA records are important for the DNS system because they specify which servers are responsible for handling DNS queries for a given domain zone. Using the information contained in SOA records, DNS servers synchronise zone information with one another and ensure that the correct DNS queries are handled.
SOA records also contain a counter indicating the number of changes to the given DNS zone. This counter increments every time the zone information is updated, thereby helping all DNS servers to identify the current version of the information for that zone. SOA records may also contain a TTL (Time-to-Live) value, which specifies how long the zone information may remain valid on the various DNS servers.
SOA records can usually be configured via your domain registrar or DNS provider, and are essential for setting up the correct DNS zone. The settings in SOA records provide DNS servers with fundamental information regarding the management of the domain zone in question, and help to ensure efficient and reliable DNS service.