DNS to a MAMP server

Hi guys, this is a OS X / Networking question.

I have 2 websites up and running on my OSX 10.5 server and I have DNS successfully routing to each site (all internal).

My colleague installed a MAMP server and hosted some project software on it. Now I'm a little mixed up on how to point a DNS entry at the separate MAMP server since it's not a part of the Web Site role on the server. Do you think this can be done just on the router?

The addresses of the websites are (these are mock-ups of course. not the actual info)

Site1 - http://www.mysite.com ---> 10.0.0.5(port 80) (Physical ethernet address)
Site2 - http://colaboration.mysite.com ---> 10.0.0.6 (port 80) (virtual Ethernet address)

The MAMP server is currently running at 10.0.0.5:8844

Is it just going to be too difficult to point to 2 different sites even though they run on different ports?

Sorry if this sounds scattered. I haven't done DNS on the apple server in months.

THANKS!

Various Apple Servers, Mac OS X (10.5.8), Stuff

Posted on Jan 31, 2011 10:14 AM

Reply
3 replies

Jan 31, 2011 12:33 PM in response to Macinator0102

There is zero correlation between DNS and ports, or even services. DNS simply maps names to IP addresses (and back).

So, to that end, it doesn't matter whether you have two names pointing to two different IP addresses on the same machine (heck, they could point to the same IP address if that's what you want).

The only thing you cannot do is use DNS to point a hostname to something like '10.0.0.5:8844' since you cannot incorporate a port number in the lookup. You can point it to 10.0.0.5 and the user will need to append the port number in their browser/client.

Does that answer the question.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

DNS to a MAMP server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.