1

Is it possible to setup DNS point to 2 servers, one in Digitalocean another is in Linode? I hope the two servers compose a cluster.

Your comment welcome

user62414
  • 135
  • 1
  • 1
  • 6

3 Answers3

1

Yes, this is possible. In the easiest case, you just point two A records to the IP addresses of the two machines und use them as Round-Robin-DNS.

This doesn't make them a cluster, though. Please explain what you hope to achieve.

Sven
  • 97,248
  • 13
  • 177
  • 225
  • I used nodejs compose of cluster which do not need Ngnix/Haproxy to be proxy server and make auto balance. I hope if one server is down, fail-over auto transfer to another – user62414 May 13 '17 at 19:27
1

Yes, it is possible and called DNS Round Robin, but it might not be as good for load balancing as you wish:

DNS roundrobin is excellent to increase capacity, by distributing the load across multiple points (potentially geographically distributed). But it does not provide fail-over.

Esa Jokinen
  • 43,252
  • 2
  • 75
  • 122
0

Yes. Provider diveristy is actually a very good thing. When one receives a DDoS, the other has a chance of surviving. Businesses are doing this more and more with CDN's and DNS providers these days.

Public DNS servers are not typically considered to be clusters; in that, they don't need to talk to each other unless one is a slave of the other. That is not so much an aspect of clustering as it is data replication. If you have a "hidden master" or use an API to keep your DNS servers up to date, then both would be considered a slave or a master respectively.

Aaron
  • 2,809
  • 2
  • 11
  • 29
  • Thanks, having a "hidden master" or using an API to keep your DNS servers up to date is a solution, but updating DNS and activating needs 5 minutes, I prefer fail-over – user62414 May 13 '17 at 19:46
  • What needs activating and 5 mins? Each server listed in the root servers will be live 100% of the time. – Aaron May 13 '17 at 20:38