Is it possible that a single domain name has several corresponding IP addresses?

For example, when we connect to www.abc.com, we first try to connect to 1.1.1.1. And if the first attempt failed, then we will try 2.2.2.2. Is it possible? Can we register multiple fallback IP addresses for a single domain name?

+45
dns
Apr 21 2018-12-12T00:
source share
3 answers

This is a circular DNS. This is a fairly simple load balancing solution. Typically, DNS servers rotate / shuffle DNS records for each incoming DNS request. Unfortunately, this is not a real solution for rejection. If one of the servers fails, some visitors will still be redirected to this failed server.

+30
Apr 21 '12 at 10:14
source share

Can you do it. This is what the big guys do.

First request:

ยป host google.com google.com has address 74.125.232.230 google.com has address 74.125.232.231 google.com has address 74.125.232.232 google.com has address 74.125.232.233 google.com has address 74.125.232.238 google.com has address 74.125.232.224 google.com has address 74.125.232.225 google.com has address 74.125.232.226 google.com has address 74.125.232.227 google.com has address 74.125.232.228 google.com has address 74.125.232.229 

The following query:

 ยป host google.com google.com has address 74.125.232.224 google.com has address 74.125.232.225 google.com has address 74.125.232.226 google.com has address 74.125.232.227 google.com has address 74.125.232.228 google.com has address 74.125.232.229 google.com has address 74.125.232.230 google.com has address 74.125.232.231 google.com has address 74.125.232.232 google.com has address 74.125.232.233 google.com has address 74.125.232.238 

As you can see, the list of IP addresses has turned around, but the relative order between the two IP addresses has remained the same.

Update. I see a few comments about how a circular DNS server is not suitable for failure, so here's the summary: DNS is not for failure. Thus, this is clearly not good for failure. It was never intended to solve the problem of failure.

+23
Apr 21 '12 at 10:26
source share

Yes, it is possible, but it is not convenient, as Jens said. The use of next-generation balancers such as Alteon, which uses a proprietary protocol called DSSP (Distributed Site Status Protocol), which performs regular site checks to ensure that the service is available both locally and globally in different geographical areas. However, you need to delegate the URL or service to the device in the main DNS by configuring it as an authoritative name server for this IP address or service. By doing this, the device responds to DNS queries, where it will resolve the IP address that has the service, Round-Robin or is not overloaded according to how you selected from several indicators,

+1
Jul 14 '16 at 14:17
source share



All Articles