Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 9th, 2000, 05:15 AM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
OK, I work for a small web design company and we are shortly having a fast leased line installed. 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.
------------------------------
Alex
(http://www.alex-greg.co.uk)

Reply With Quote
  #2  
Old July 9th, 2000, 12:22 PM
RyanP
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I can't give you an answer on exactly what you need to do, but I am quite sure that what you want to look into is Virtual Hosting. Read up about it in the apache manual and check out the Virtual Hosting entries at the end of httpd.conf

Reply With Quote
  #3  
Old July 10th, 2000, 08:02 AM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 243 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 36 m 22 sec
Reputation Power: 9
For the DNS issue, I would use BIND...download it from freshmeat.net
When you register a domain, you must supply DNS server(s). In BIND there are zone files which contain information about the domain name. For example, what IP it points to for a web page, what is the name of the mail exchanger...etc. Since you mentioned that you are only hosting a few sites, you might want to install BIND on the same box that is going to be your web server...however if you are doing DNS for many sites, a seperate box might be the answer. The configuration of BIND is not too hard, but make sure you look at the readme file for help.

Reply With Quote
  #4  
Old July 12th, 2000, 03:48 PM
sophisticate sophisticate is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Spokane, Wa. US
Posts: 3 sophisticate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by alexgreg:
OK, I work for a small web design company and we are shortly having a fast leased line installed. 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.[/quote]

First set up bind. You can find everything you need at the Internet Software Consortium (www.isc.org). In all of your forward DNS files, you'll just have your "IN A ip.address" line reflect the same thing. In your reverse DNS, you'll just have the single IP referenced to whatever you consider your primary domain.

In Apache, you'll need the NameVirtualHost directive pointing to your server's IP, and use the <VirtualHost ip.address> syntax with the ServerName and ServerAlias directives to handle the resolves.

Take care,

Brendan http://www.witheredpipedream.com

Reply With Quote
  #5  
Old July 12th, 2000, 05:13 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by sophisticate:
...In all of your forward DNS files, you'll just have your "IN A ip.address" line reflect the same thing. In your reverse DNS, you'll just have the single IP referenced to whatever you consider your primary domain.

In Apache, you'll need the NameVirtualHost directive pointing to your server's IP, and use the <VirtualHost ip.address> syntax with the ServerName and ServerAlias directives to handle the resolves.
[/quote]

Thanks very much for your help but I'm still unclear about one or two things such as the reverse DNS and the forward DNS and what those do. Also how do I get a name for my DNS to point the domain names that I register to? The names require at least two DNS's.

Regards,

Alex

Reply With Quote
  #6  
Old July 12th, 2000, 07:52 PM
sophisticate sophisticate is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Spokane, Wa. US
Posts: 3 sophisticate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The reverse DNS translates ip addresses to verbal addresses, vice versa for the forward DNS.

If you're not that worried about having redundancy with your DNS (ie. multiple machines in case one breaks), place CNAMEs (aliases) in your primary domain's forward DNS entry like:

ns0 IN CNAME yourdomain.com.
ns1 IN CNAME yourdomain.com.

So both of those addresses point to your server. I think that will work, though it's possible that the registrars won't allow two hosts with the same IP -- I've never tried. If that's the case, try to get 2 IPs from your provider, bind them both to the same machine and in the forward DNS, use:

ns0 IN CNAME yourdomain.com
ns1 IN A second.ip.address

Good luck!

Brendan Cassida
http://www.witheredpipedream.com

[This message has been edited by sophisticate (edited July 12, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Setting up a DNS on my dedicated web server


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT