DNS and Apache Virtual Hosts
Kevin Darcy
kcd at daimlerchrysler.com
Thu Nov 2 18:28:11 UTC 2000
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#
More information about the bind-users
mailing list