DNS and Apache Virtual Hosts

Michael Rasmussen mikeraz at patch.com
Thu Nov 2 19:05:21 UTC 2000


Mike,

I agree with Kevin.  Don't muck with your DNS.  Instead use the apache "alias"
command as in:


<VirtualHost 10.1.2.252>
        ServerAdmin rasmussm at columbiafunds.com
        DocumentRoot /home/httpd/agora
        ServerName agora.columbiafunds.com
        ServerAlias agora
        ErrorLog logs/agora-err.log
        CustomLog logs/agora-access.log common
</VirtualHost>

   or in your case:

	ServerName sysops.mydomain.com
	ServerAlias sysops

yada yada



Kevin Darcy wrote:
> My advice? DON'T DO THIS! What happens when you want to provide Internet
> connectivity? Or what happens if you merge with another company and/or link
> your intranet with other trading partners? This is the voice of experience
> talking. Just say no.
> 
> 
> - Kevin
> 
> Mike Flaherty wrote:
> 
> > Hello,
> >
> > Not sure if this is more of an Apache question than A DNS question...
> >
> > I am trying to set up Virtual Hosts under Apache 1.3.12.  Everything works
> > fine if I specify the full URL for example...
> >
> > Main site = http://sysadmin
> > Subsite 1 = http://sysops.sysadmin
> > Subsite 2 = http://helpdesk.sysadmin
> >
> > However, I would like to simply type the department name as the URL.  For
> > example...
> >
> > Main site  = http://sysadmin (this already works)
> > Subsite 1 = http://sysops
> > Subsite 2 = http://helpdesk
> >
> > What do I need to put into my primary DNS in order for the abreviated names
> > to resolve to the full names?  I have entered an excerpt from my DNS
> > configuration (addresses have been changed to protect the innocent).
> >
> > ;
> > ;  Alaises
> > ;
> > dilbert   IN      CNAME
> > dilbrt.ourcity.ourcompany.oursubdomain.ourdomain.com.
> > helpdesk.sysadmin  IN  CNAME
> > sysadmin.ourcity.ourcompany.oursubdomain.ourdomain.com.
> > sysops.sysadmin    IN  CNAME
> > sysadmin.ourcity.ourcompany.oursubdomain.ourdomain.com.
> >
> > -----------------------------------------------------------------
> >
> > image# nslookup sysadmin
> > Server:  image.ourcity.ourcompany.oursubdomain.ourdomain.com
> > Address:  10.33.10.55
> >
> > Name:    sysadmin.ourcity.ourcompany.oursubdomain.ourdomain.com
> > Address:  10.33.10.85
> >
> > image#
> > image# nslookup sysops.sysadmin
> > Server:  image.ourcity.ourcompany.oursubdomain.ourdomain.com
> > Address:  10.33.10.55
> >
> > Name:    sysadmin.ourcity.ourcompany.oursubdomain.ourdomain.com
> > Address:  10.33.10.85
> > Aliases:  sysops.sysadmin.ourcity.ourcompany.oursubdomain.ourdomain.com
> >
> > image#
> > image# nslookup sysops
> > Server:  image.ourcity.ourcompany.oursubdomain.ourdomain.com
> > Address:  10.33.10.55
> >
> > *** image.ourcity.ourcompany.oursubdomain.ourdomain.com can't find sysops:
> > Non-existent host/domain
> > image#
> 
> 
> 
> 
> 
> 


-- 

  Michael Rasmussen - mikeraz at patch.com
 Be Appropriate && Follow Your Curiosity
 email to pager:  pagemike at patch.com



More information about the bind-users mailing list