Dueling Daughters

Joseph S D Yao jsdy at center.osis.gov
Wed Apr 4 21:30:05 UTC 2007


On Wed, Apr 04, 2007 at 12:50:27PM -0700, Bill.Light at kp.org wrote:
> OK - Not dueling, but it made a cute subject...
> I have a domain, example.com, and both daughers want a "home" page, so 
> instead of:
> 
> example.com/daugtherone   -and-   example.com/daugthertwo
> 
> Can I do:  daugtherone.example.com   -and-   daugthertwo.example.com  ??
> 
> And I guess, more appropriately, once I have *.example.com.  in a zone 
> file, is this strictly an Apache issue ?
> 
> Examples ??


Yes, and yes.

YOu can create separate names pointing to either the same IP address or,
if you have them, different IP addresses.  Just add the A records into
your zone file:

zone.example:
=======================================================================
daughterone	A	ip.ad.dre.ss1
daughtertwo	A	ip.ad.dre.ss2
=======================================================================

The Apache 'httpd' issue is that you can then create either name-based
or IP-based virtual hosts.  That is beyond the scope of this mailing
list, but cf.
<http://httpd.apache.org/docs/2.2/mod/core.html#virtualhost>.


-- 
Joe Yao
Analex Contractor



More information about the bind-users mailing list