Results 1 to 5 of 5
Thread: DNS question
-
02-23-2003, 03:25 PM #1DmXGuest
We are planning on having a web server in our office to host some of our smaller client's sites on. The thing is, these clients will have their own domain names and the server only has one IP address, so how can I set up a DNS for the domains to point to? I'm quite new to the whole idea of DNS but I know that it basically converts IP addresses to domain names and vice versa, and I know that when you have a web server it only has one IP address normally, since we're only running one internet connection on the server. Any advice would be appreciated. I know how to set up Apache, by the way.
-
02-24-2003, 12:34 AM #2
- Join Date
- Feb 2003
- Location
- Virginia
- Posts
- 426
(wOOt) Well it's a combination of setting up the DNS and APACHE correctly. When your setting up your DNS, you simply point all of your domains to the same IP address. Apache however takes a bit more work. Here is a sample httpd.conf file that will work for what your trying to do:
NameVirtualHost 123.123.123.123:80
<VirtualHost mydomain.com>
ServerAdmin me@mydomain.com
DocumentRoot /usr2/hosting/www/mydomain/www
ServerName www.mydomain.com
ScriptAlias /cgi-bin/ "/usr2/hosting/www/mydomain/cgi-bin/"
ErrorLog /usr2/hosting/logs/mydomain-error_log
CustomLog /usr2/hosting/logs/mydomain-access_log combined
</VirtualHost>
<VirtualHost theirdomain.com>
ServerAdmin me@mydomain.com
DocumentRoot /usr2/hosting/www/thierdomain/www
ScriptAlias /cgi-bin/ "/usr2/hosting/www/theirdomain/www/cgi-bin/"
ServerName www.theirdomain.com
ErrorLog /usr2/hosting/logs/theirdomain-error_log
CustomLog /usr2/hosting/logs/theirdomain_log combined
</VirtualHost>
That should work for your application. If you have any problems just send me a PM and I'll give you a hand.Brian Pauley
:: Harbor Networks ::
http://www.harbornetworks.net
:: SoundSource - Your Online Pro Audio Online Web Resource. ::
http://www.soundsource.info
-
02-24-2003, 12:35 AM #3
- Join Date
- Feb 2003
- Location
- Virginia
- Posts
- 426
sorry for the apache lesson there... I didn't see that last message
Brian Pauley
:: Harbor Networks ::
http://www.harbornetworks.net
:: SoundSource - Your Online Pro Audio Online Web Resource. ::
http://www.soundsource.info
-
02-24-2003, 12:43 AM #4
- Join Date
- Feb 2003
- Location
- Virginia
- Posts
- 426
Sorry for missing your actual question there. You can use the 1 IP you have for your nameserver and to service up your web pages, however you will need a secondary dns server out there somewhere. I would recomend talking to your ISP and trying to get another IP for this purpose. The first thing you need to do is register your IP address as a nameserver. This can be done through your domain name registry. Once you have done this, you can start using it as a nameserver. As for the DNS entries they will all point to the same IP address. Apache will take care of mapping the correct domain to the corresponding website directory. Let me know if you have anymore questions.
Brian Pauley
:: Harbor Networks ::
http://www.harbornetworks.net
:: SoundSource - Your Online Pro Audio Online Web Resource. ::
http://www.soundsource.info
-
02-26-2003, 10:52 AM #5
- Join Date
- Feb 2003
- Location
- Virginia
- Posts
- 426
Yeah, my cable company wants to charge me $25 per extra ip. Lucky for me, I have a source for secondary DNS which is outside my network
Brian Pauley
:: Harbor Networks ::
http://www.harbornetworks.net
:: SoundSource - Your Online Pro Audio Online Web Resource. ::
http://www.soundsource.info
Bookmarks