Jump to content
Sign in to follow this  
zachary

Question about DNS server

Recommended Posts

Lets say I have a web server running at 99.88.77.66:85 (notice port 85), can I buy a domain, example.com, and list the DNS server as 99.88.77.66:85 and when I access example.com, will it resolve correctly?

Edited by zachary

Share this post


Link to post
Share on other sites

No, DNS records do not include port information. You would need to handle that on a router or server.

Share this post


Link to post
Share on other sites

Alright well maybe I should just explain what I am trying to do.I have three old computers running ubuntu linux w/ apache and all the good stufftheir addresses are:192.168.1.100192.168.1.101192.168.1.102I can port forward these to different ports and have apache listen to different portsexampleserver1 could be port 100server2 could be port 200server3 could be port 300now for example I can access each server if i type in 123.123.123.123:100 or 123.123.123.123:200 or 123.123.123.123:300I want to be able to give each ip/port combo its own domainso server1 could be example1.comso server2 could be example2.comso server3 could be example3.comis there a way to do this? I only have one public IP obviously.

Share this post


Link to post
Share on other sites

You could just have a midway device check what domain name the request used, and forward the request to the relevant port.

Share this post


Link to post
Share on other sites

If you want one public IP to forward to different servers based on the domain name, then you're going to need a router capable of doing that. I'm not a networking expert, but expect a router like that to run in the couple hundreds of dollars. It might be possible to set up a Linux machine as the router and do the configuration there.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...