On Thu, 12 May 2005 02:34:11 -0400, Calvin Spealman wrote: > ive got a network question. i have a few machines on my local > network, but only one IP. I can congure my router for all the proper > port forwarding for my server, but hostnames is giving me some > confusion. To run a lot of things properly, such as Apache and > Postfix, i need a qualified hostname configured for the server. But, i > don't intend to run all the server daemons on one box for long. I > can't give the same name to multiple servers, and i want to be able to > address the different boxes by unique names from within the network > (got a nifty naming scheme and everything), so how can i go about the > best set up here?
Just name them as you see fit. The names are only applicable to your private network. Externally, all public names will point to your one public IP address and your router will take care of forwarding the requests for each service to the correct box. For example, www.mydomain.org, ftp.mydomain.org and mail.mydomain.org will all resolve to your public IP address, but you may have something like this /etc/hosts setup for your lan 192.168.0.1 box1 www.lan 192.168.0.2 box2 ftp.lan 192.168.0.3 box3 mail.lan As long as your router forwards ports 80, 21 and (25|110) to 192.168.0.1,2,3 respectively, it should all work, with no one on the outside knowing anything about your local network. -- Neil Bothwick Keyboard: (n.) a device used by programmers to write software for a mouse or joystick and by operators for playing games such as 'word processing.'
pgp8bCev63FgY.pgp
Description: PGP signature