Answer the question
In order to leave comments, you need to log in
Whether it is possible to organize DNS through ports on one ip?
There is a VPS with docker, you need to somehow correlate the domain and the desired container. It seemed to me the most logical to forward some port from the container, and then specify the ip with this port in the DNS system. However, I do not know if this is possible, and if so, through which program can this be implemented
Answer the question
In order to leave comments, you need to log in
For some protocols, this can be done through SRV records, for some it is not possible.
DNS is a database that links a name and an IP forward and backward. And she can't do anything else . Well, also correlate the name with a certain comment (as is done in SPF / DKIM)
It is possible to spread different containers across subdomains through a proxy like NGinx / HAPRoxy.
That is, to map subdomains to ports within the same host. In DNS, such mapping cannot be done.
subdomain1.domain.ru -> https -> haproxy/nginx -> http:port=111 -> container1
subdomain2.domain.ru -> https -> haproxy/nginx -> http:port=222 -> container2
subdomain3.domain. en -> https -> haproxy/nginx -> http:port=333 -> container3
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question