D
D
Dmitry Rybin2019-09-01 16:36:06
Domain Name System
Dmitry Rybin, 2019-09-01 16:36:06

How to bind two IP addresses to a domain?

Hello. Help me please. I need to bind two IP addresses to one domain, so that players connecting to domain.ru port: 111 get to server 1, if to domain.ru port: 222, then to server 2.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Dmitriev, 2019-09-01
@mb_of

means of DNS - in any way.
1. You can make a subdomain for the second server
2. You can make address translation on server 1 for packets arriving on port 111 so that they are forwarded to server 2. But, accordingly, traffic will go through server 1.
3. You can put a separate load balancer, which will, depending on the destination port, forward packets to the first or 2nd server.

S
Sanes, 2019-09-01
@Sanes

You cannot specify a port in DNS. If a web server, then look towards Ngix Proxy.

V
Viktor Taran, 2019-09-02
@shambler81

Maybe I did it once, as a result there is a redirect immediately to the domain and port ,
there are also specific records like RT
In general, you better do it
like
this it was through dns redirect to the port, but it was about 7 years ago I can’t say exactly how I did it, I remember through a rarely used entry.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question