Which type of DNS record should you use to resolve an IP address to a domain name?

Only A and AAAA record sets can have multiple values.

If an A or AAAA record set has multiple values, all IP addresses are returned for each query in a random sequence, and the first IP address is used.

The process how a domain name is resolved is as follows:

  1. A visitor enters a domain name in a browser, and the request for the DNS query is sent to the local DNS server.
  2. The local DNS server forwards the request to the authoritative DNS server.
  3. The authoritative DNS server returns all IP addresses to the local DNS server in a random sequence.
  4. The local DNS server returns all IP addresses to the browser.
  5. The browser randomly accesses one of the IP addresses. Generally, the first IP address is used.

Statistically, the probability of returning each IP address is approximately the same.

The following is an example how IP addresses are returned for a domain name. You have a website deployed on three servers. The domain name of your website is example.com, and the IP addresses of the three servers are 192.168.1.1, 192.168.1.2, and 192.168.1.3.

An A record set is added to the domain name, with the Value field set to the three IP addresses.

Table 1 describes the resolution results returned when different visitors access the website.

Table 1 Example resolution results

Visitor

IP Addresses Returned by the Local DNS Server

IP Address Accessed by the Browser

Visitor A

192.168.1.1

192.168.1.2

192.168.1.3

192.168.1.1

Visitor B

192.168.1.2

192.168.1.1

192.168.1.3

192.168.1.2

Visitor C

192.168.1.3

192.168.1.1

192.168.1.2

192.168.1.3

When you start trying to manage your domain’s DNS for the first time, everything can seem very confusing. Don’t panic! DNS records can be intimidating, but they’re not so hard once you get a feel for them. Below are explanations of the more common types.

  • A Records:

    These are also called Address Records or sometimes Host Records. A record only resolves to IP addresses. These records point your domain to the IP address of your website or hosting. Let’s say that you own the domain name name.com which is hosted with us and the IP address of your hosting server is 127.0.0.1. Usually you would have two DNS records to point your domain to the hosting that look like this:
  • A       name.com        127.0.0.1
  • A    *.name.com        127.0.0.1

The first A record in this example is pointing the “bare” version of your domain. That means when someone goes to their browser and types in the domain name without www, it will resolve to the right server and website. The second A record is the wildcard version. This redirects any subdomains to your domain to the server; this includes www, and anything else people may type before your domain name.

If you have any specific subdomains that you need to set records for, you would also do that with A records the same way. So, if in the example above, you wanted to make a subdomain called test.name.com, then you would create an A record that looks like this:

A    test.name.com    127.0.0.1

Using this method, you can also point subdomains to different servers than your main site, depending on your needs.

  • CNAME Records

    : CNAME stands for Canonical Name Record. CName records only resolves to domains and subdomains. A CNAME record points one of your subdomains to a different domain name. A CNAME cannot be set up on your bare domain! You could set up a CNAME record on www.name.com but not on simply name.com. One thing that CNAME records are commonly used for is to direct a part of your site to a site you have set up elsewhere, such as an eCommerce shop or something similar.
  • MX Records

    : MX stands for Mail Exchange. MX record does resolves to text and not IP-records. These records are used to direct emails sent to your domain name to the correct server to then send it to your specific email address. Your email provider will provide you with the necessary MX records for your email. If you have email with Name.com, you can use our DNS Templates to automatically add the right records. Keep in mind that you can only have one set of MX records on your domain. All of your mail needs to be directed to the same place, and will then get sorted from there. This means that you cannot have two separate email providers on one domain. It also means that any email forwarding you set up has to be set up with your email provider, and not on the domain itself.
  • TXT Records

    : TXT just stands for Text. These records do not change anything on your domain, but they can be searched for your domain. These records are commonly used by services such as Google, which will ask you to add a string of characters to a TXT record, so that they can search for the record and verify that you are the domain’s owner/have access to the domain’s DNS records.

Which DNS record type is used to resolve an IP address to another domain name?

A Canonical Name (CNAME) Record is used in the Domain Name System (DNS) to create an alias from one domain name to another domain name.

What is used to resolve domain names to IP addresses?

DNS translates domain names to IP addresses so browsers can load Internet resources. Each device connected to the Internet has a unique IP address which other machines use to find the device. DNS servers eliminate the need for humans to memorize IP addresses such as 192.168.

What type of DNS domain system record is used for resolving an IP address to a hostname FQDN?

The A record is one of the most commonly used record types in any DNS system. An A record is actually an address record, which means it maps a fully qualified domain name (FQDN) to an IP address.