Page 1 of 1

Accessing Apache on Network Using Domain Name

Posted: Thu Dec 09, 2004 10:57 am
by Crashin
I've got Apache 2 installed on an XP machine, and all is well. I am able to access the server from other machines on the network via it's IP address, and have successfully setup an FTP server as well.

My question is, I'd like to give users on the network access to the server via a domain name, as opposed to the IP address. How do I set this up?

I apologize if this is a simple or obvious question. I am trying to educate myself on server administration one step at a time. Likewise, if there's already a topic about this that I didn't find in my searching, by all means let me know.

Thanks!

Posted: Thu Dec 09, 2004 11:19 am
by Crashin
Okay, I've found a great article that quickly and easily walks you through setting up a virtual host:

http://www.apptools.com/phptools/virtualhost.php

But, this raises another question. Is there a way to set up the DNS redirection for our entire network without having to modify the hosts file on each machine on the network?

Thanks again! :wink:

Posted: Fri Dec 10, 2004 5:16 pm
by rehfeld
1 way is run your own dns server

i really dont know the details,
but my brother uses some kinda software to cache dns queries to improve
browsing speed. he has a compuer dedicated to being just a router, so all other computers on his network go through it
i know he mentioned he can add his own permanent entries if he wanted, which would
accomplish exactly what your trying to do. but i would imagine theres a much easier way.

maybe theres a setting in your router that would let you do the same?

Posted: Mon Dec 13, 2004 9:47 am
by Crashin
Thanks for the tip. If I find anything more about using a DNS server I'll pass it along, including any topics I might find about it searching the forums.

Posted: Mon Dec 13, 2004 11:03 am
by timvw
this is how we do it:
our dhcp server does not only gives ip's but also dns servers to the clients
our dns server looks up localdomain stuff in a ldap tree...

some dns servers can be found here:
http://cr.yp.to/djbdns/other.html as you probably don't want to run the big bind nameserver...