PDA

View Full Version : Cannot add port to ip in DNS ?(Moved)



GlennH
07-13-2004, 06:42 PM
I used to have a NS from a windows box that allowed me to create an A record (or C name I cant remember) with my ip:port,

mysite.com A 12.34.234.45

I would like to map,
myapp.mysite.com to 12.34.234.45:4321

myapp listens to a port, and has its own
server, I also did it for MyPhpAdmin
makes life easy..

I tried both c name and A but both times recieved an error from DA

Any ideas on what im doing wrong ?

Thanks
GlennH

DirectAdmin Support
07-14-2004, 12:55 PM
Hello,

I'm not aware of any way of using the dns system to map to a particular port. I just tested it with 1.2.3.4:1234 and it generated an error (bad dotted quad). I believe you can only map myapp.mysite.com to an IP address, then just access the site via:

myapp.mysite.com:4321

John

GlennH
07-14-2004, 02:27 PM
John, Im sorry I didnt remember all the
details...

Say I used a custom program that listened to port 1234 by default no server needed, it had its own.

I added the myapp folder to a virtual directory in windows IIS, (only to controll its permissions)

then I was able to give that virtual dir a subdomain

then tell the server foward all requests for subdomain.mysite.com to mysite.com:1234

With the myapp folde in linux, im not as worried about the permissions, so I guess a dummy subdomain would work.
I would have to take all requests and forward them to myip:1234 ...

SO with all that, can I do it in DA ?
(Im so new to DA I dont want to break anything I have working so far ;)

GlennH

DirectAdmin Support
07-15-2004, 12:10 PM
Hello,

http://help.directadmin.com/item.php?id=37

In the subdomain root (public_html/subdomain), add an index.php with:
<?php
header("Location: http://mysite.com:1234");
?>
John