Domain pointing to a port IP?

Asked

Viewed 2,784 times

1

In cPanel with a Record Type A I can only specify the IP to which the domain should be routed, this will by default redirect to port 80, but if the destination 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 tried to create a SRV type Registry but it didn’t work:

Name: teste.dominio.com
Priority: 5
Weight: 5
Port: 7070
Target: ip-do-server

1 answer

1

DNS zones are indifferent to the IP protocol to which the names, aliases, cname, among others.

What determines the next 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 would have to solve with proxy (bypass), routing or a simple redirect.

You set this up on your web page server (apache, Nginx, iis, etc).

Browser other questions tagged

You are not signed in. Login or sign up in order to post.