Accessing Apache on Network Using Domain Name

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Crashin
Forum Contributor
Posts: 223
Joined: Mon May 06, 2002 3:42 pm
Location: Colorado

Accessing Apache on Network Using Domain Name

Post 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!
User avatar
Crashin
Forum Contributor
Posts: 223
Joined: Mon May 06, 2002 3:42 pm
Location: Colorado

Post 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:
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post 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?
User avatar
Crashin
Forum Contributor
Posts: 223
Joined: Mon May 06, 2002 3:42 pm
Location: Colorado

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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...
Post Reply