F
F
fjghkdshsffjhg2018-03-06 00:23:22
linux
fjghkdshsffjhg, 2018-03-06 00:23:22

Domain replication across different servers, how can this be done?

I don't know what it's called and couldn't find it through a search.
At first I tried to find it through dynamic dns, but that's not it.
There is a domain xxx.xx that refers to a server with ip1
Between the domain and the server there is DDoS protection, for example, ddosguard or cloudflare
There are also backup servers ip2, ip3, ip4, ip5
All servers are the same
How to make it so that when requesting a domain xxx .xx a random server from the list was squeezed out (ip1, ip2, ip3, ip4, ip5) and the connection went to it
. Moreover, when connecting again, the same server was issued if possible, for example, it was saved in the session
A strange task that is very necessary

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2018-03-06
@fjghkdshsffjhg

This is standard behavior.
Just write several IPs to this A-record - a random one will be chosen ( https://ru.wikipedia.org/wiki/Round_robin_DNS ).
And browsers will choose the same IP (verified by experience). However, you shouldn't count on it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question