Note: This is a follow-up to my previous question regarding DNS Failover.
The Goal: to make the client's web browser select the next available server if one is down instantly.
I've read somewhere that multiple A records (while not the best solution) is the only "instant failover" solution possible for HTTP/browser-based applications.
Here's the scenario/example:
I have two servers A and B which contains exactly the same content. The IP address of server A is 1.1.1.1 and 1.1.1.2 The IP address of server B is 2.2.2.1 and 2.2.2.2 I have a domain registered at Godaddy. If I want to make use of DNS round robin, which method is best?
Method 1: Do I set my nameserver entries at Godaddy like this?
- ns1.serverA.com
- ns2.serverA.com
- ns1.serverB.com
- ns2.serverB.com
Method 2: Or do I make Godaddy as my nameserver and add A Records like this:
- A @ 1.1.1.1
- A @ 1.1.1.2
- A @ 2.2.2.1
- A @ 2.2.2.2
My question is, will DNS round robin work with either of the two methods? If not then what's the best method to achieve the goal?