Domain pointing to an IP with port?

1

In cPanel with a Type A record I can only specify the IP to which the domain is to be forwarded, this will by default redirect to port 80, but if the target settings are running on a port other than 80.

How can I specify in cPanel a record that points the domain to the IP: PORT?

I've tried to create an SRV record but it did not work:

Name: teste.dominio.com
Priority: 5
Weight: 5
Port: 7070
Target: ip-do-server
    
asked by anonymous 21.01.2017 / 22:20

1 answer

1

DNS zones are indifferent to the protocols of the IPs to which they relate the names, aliases, cname, among others.

What determines the following port is the client software.

A web browser sends requests to port 80 by default.
An ftp client requests port 21 by default, and so on.

For your case you would have to solve it by proxy (bypass), routing or a simple redirect.

You configure this on your web page server (apache, nginx, iis, etc.).

    
22.01.2017 / 03:03