Can DNS for a URL point to an IP Address and Port #

Hello,

I was hoping to use my DNS server to point certain URL's to the same pulic IP address, but to different ports.  
Example:
www.server1.com -- 24.29.103.10 port 5252
www1.server1.com -- 24.29.103.10 port 5253
www2.server1.com -- 24.29.103.10 port 5253

Has anyone every seen this done and if so, how did they configure the DNS entry.

Cheers,
Marc
marcr69Asked:
Who is Participating?
 
RPPreacherConnect With a Mentor Commented:
Need anything else before closing this bad boy out?
0
 
RPPreacherCommented:
You cannot do this.  Sorry.
0
 
RPPreacherCommented:
Some commercial services (ala http://no-ip.com) offer Port 80 host name redirection so www.example1.com redirects to 111.222.33.44:1010 and www.example2.com redirects to 111.222.33.44:2020, etc...
but this is Port 80 only
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
Steve KnightIT ConsultancyCommented:
No as has been said is your answer...


However you can do it with web forwarding, I know I have done something similar in the past with 123reg.co.uk.  You have multiple web forwarding options there but pretty well it either redirects to a new page and shows the port address in the url bar or you hide the redirect by showing a hidden frame with your site within it.

Only realistic way other than that is three external IP's or use host-headers within the webserver to identify which site to send the request to.

Steve
0
 
marcr69Author Commented:
Ok Thanks RPPreacher, I had a feeling it was a long shot.

Marc
0
 
marcr69Author Commented:
No thanks for the quick advice.  

Marc
0
 
marcr69Author Commented:
And thanks dragon-it - Just saw your post.
0
 
Steve KnightIT ConsultancyCommented:
I think RPPreacher was reminding you of the Accept Answer butotn or the Split points link at the bottom of the Question...
0
 
Steve KnightIT ConsultancyCommented:
Any reason for not using host headers as suggested btw?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.