Help with redirect

192.99.45.20:4085/

I’m not really all that good with DNS, and it’s probably a lot simpler than I’m thinking it is…but I’m hoping someone can help me get this done.

I need to have vps.mydomain.com redirect to ip:4085 but I’m not having much luck.

The only way I can think of doing this is by doing:

System Services > DNS Server > Zones > Domain (eg: mydomain.com) > Records > Add a new: A Record

Host: vps.mydomain.com
Seconds: 43200
IP Address: 192.99.45.20

Then go to vps.mydomain.com:4085

Not sure how to get the IP:port working for the record though sorry :(.

[QUOTE=Licensecart;25576]The only way I can think of doing this is by doing:

System Services > DNS Server > Zones > Domain (eg: mydomain.com) > Records > Add a new: A Record

Host: vps.mydomain.com
Seconds: 43200
IP Address: 192.99.45.20

Then go to vps.mydomain.com:4085

Not sure how to get the IP:port working for the record though sorry :(.[/QUOTE]

would a SRV record work to add the port? I use it for minecraft/ts3 to add a port, never tried it with an actual browser though. Only one way to find out I guess.

Sorry I overlooked that :slight_smile: yes that would work, have a look at: Login - Minecraft Forum

Another alternative would be to use a reverse proxy in the vhost config file:


  ProxyRequests off
  ProxyPreserveHost On


    <Proxy *>
	Order deny,allow
        Allow from all
    </Proxy>


    <Location />
        ProxyPass <protocol (ie http)>://<target ip/domain>:<port>/
        ProxyPassReverse <protocol (ie http)>://<target ip/domain>:<port>/
    </Location>

I would go with the SRV record first. As it’s easier to maintain, and can easily be integrated in the DNS skel zone.