N
N
Nazar_K2019-07-17 20:58:32
linux
Nazar_K, 2019-07-17 20:58:32

One domain for several proxy servers?

Hello, there are several servers on which proxy servers are installed! I want to bind them all to one domain for ease of use, is it possible to make it so that if one IP is unavailable, another IP from the list is immediately issued? Ports on all proxies are the same!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Dmitry Derepko, 2019-07-17
@xEpozZ

https://nginx.org/ru/docs/http/ngx_http_upstream_m...

K
Kactus, 2019-07-17
@Kactus

It is possible to make through ns of the server of the domain. Register each ip as the main one, and then they will change

Z
zlo1, 2019-07-17
@zlo1

This task can be solved without DNS
If proxies are used in the browser, then it is easier to use the proxy.pac script
for other cases, on the client you can deploy a proxy server with a redirect ( 3proxy with the parent option )

V
Victor Taran, 2019-07-17
@shambler81

Yes, you can specify 3 And records in the DNS to different servers then they will go either according to the list or according to availability, I don’t remember exactly what, but the balancer in nginx has already given you a link
https://nginx.org/ru/docs/http/ngx_http_upstream_m ...

L
leonsa, 2019-07-18
@leonsa

This can be done by DNS by creating three A records. Servers will be given randomly.
But it is also important to check the availability of all three, and if one of them has fallen, then you need to delete the corresponding A record before restoring its work.
Otherwise, users will go to a non-working server and fall off.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question