Point domain name to specific IP:port

Posted November 9, 2020 778 views

I want to point to I have used A names to point to IP address but how can I point it to that specific port?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi @shickenbottom,

You can’t point your Domain to a specific port from your DNS. You’ll need to use a WebService like Apache or Nginx and do a proxy to a specific port.

For such cases, please tend to use Nginx more than Apache so I’ll provide you with an tutorial which can help you do so using Nginx. First here is a tutorial on how to install Nginx :

Next, is the tutorial to turn Nginx into a WebService and a Proxy:

by Justin Ellingwood
by Kathleen Juell
Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. It is more resource-friendly than Apache in most cases and can be used as a web server or reverse proxy. In this guide, we'll discuss how to get Nginx installed on your Ubuntu 18.04 server.