Answer the question
In order to leave comments, you need to log in
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
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.
You cannot specify a port in DNS. If a web server, then look towards Ngix Proxy.
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 questionAsk a Question
731 491 924 answers to any question