How Is a Domain Name Resolved When a Record Set Has Multiple Values?
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:
- A visitor enters a domain name in a browser, and the request for the DNS query is sent to the local DNS server.
- The local DNS server forwards the request to the authoritative DNS server.
- The authoritative DNS server returns all IP addresses to the local DNS server in a random sequence.
- The local DNS server returns all IP addresses to the browser.
- 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.
Public Zones FAQs
- Why Is a Message Indicating Conflict with an Existing Record Set Displayed When I Add a Record Set?
- How Do I Add Record Sets to Subdomains?
- How Is a Domain Name Resolved When a Record Set Has Multiple Values?
- Can I Modify a Zone?
- Can DNS Translate a Domain Name to IP Addresses of On-premises Servers or Servers on Another Cloud?
- How Do I Access the Same Website Using Multiple Domain Names?
- How Do I View and Change the DNS Address of a Domain Name?
Feedback
Was this page helpful?
Provide feedbackFor any further questions, feel free to contact us through the chatbot.
Chatbotmore