Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sorry if this is a newby question, but I'm not a network administrator by any means.

I'm trying to set up an Apache server that can only be accessed through the local network. It needs to have a hostname so a user could type something like foo or into their browser to get there instead of using the IP address.

The server is currently running on Fedora 11 with Apache 2.2.13, but I'll probably migrate it to CentOS eventually. I also need to do this on Windows and possibly OS X. The server needs to be deployed to client organizations, so each client would have their own intranet. I don't believe we can rely on the clients having competent network administrators (underfunded schools and such), so we'd like to distribute a package that puts everything together on it's own.

share|improve this question
up vote 0 down vote accepted

The solution is to add a DNS A or CNAME record to the clients DNS servers. You are not going to be able to do this via some kind of package.

However, if you enable DNS registration on the server, and the hostname you assign to that machine is the "name" of the intranet site, then when the machine is switched on and it connects to the network it will register its hostname in DNS.

So, you could name the server "intranet", and it'll register in the clients DNS as "intranet".

Clients on the same network should then be able to access it by typing http://intranet

share|improve this answer
Thanks. I think I understand it now. Apparently the DNS server here at work doesn't have DNS registration on... – jonescb Dec 1 '09 at 22:03

You could take a look at the wikipedia page for Zeroconf, notably the sections on service discovery and name resolution. The Bonjour service would work--you could set the server to advertise its name, and bonjour-aware clients would start to recognize the name. Macs include bonjour client support, but Windows doesn't, so you'd have to install an mDNS client on each windows computer for it to recognize the bonjour packets. The zeroconf page lists some other technologies that might fit your needs better.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.