Virtual Hosting DNS Question

Chong Yu Meng chongym
Mon May 17 11:59:41 PDT 2004


Thanks a lot, Jay !

That clarified things considerably!

Regards,
pascal chong



Jay Nugent wrote:

>Greetings,
>
>On Mon, 23 Feb 2004, Chong Yu Meng wrote:
>
>  
>
>>Hi All,
>>
>>I need to install and configure a server for virtual hosting. Because of 
>>a shortage of IP addresses, I need to use name-based virtual hosting. 
>>Now, for Apache, this is easily done, but I don't know how to add the 
>>records for the DNS. My scenario is as follows:
>>
>>The server will have 3 virtual hosts sharing 1 IP address:
>>
>>demo.xyzdomain.com
>>apps.xyzdomain.com
>>www.xyzdomain.com
>>
>>What entries must I make into the DNS ? I understand that you can use 
>>CNAME, but that practice is discouraged -- I don't know why, though.
>>    
>>
>
>   Put simply, you cannot use a CNAME to define your MX host or NS
>servers.  Other than that, CNAMES are fine to use elsewhere.
>
>
>demo.xyzdomain.com     IN   A       xxx.yyy.zzz.hhh
>apps.xyzdomain.com     IN   CNAME   demo.xyzdomain.com.
>www.xyzdomain.com      IN   CNAME   demo.xyzdomain.com.
>
>   --- or ---
>
>demo.xyzdomain.com     IN   A       xxx.yyy.zzz.hhh
>apps.xyzdomain.com     IN   CNAME   xxx.yyy.zzz.hhh
>www.xyzdomain.com      IN   CNAME   xxx.yyy.zzz.hhh
>
>   Yes.  It is absolutely okay to point many hosts to the *same* IP 
>address.
>
>   Enjoy!
>      --- Jay
>
>"Those that sacrifice essential liberty to obtain a little temporary safety
> deserve neither liberty nor safety."  -- Ben Franklin (1759) 
>+------------------------------------------------------------------------+
>| Jay Nugent   jjn at nuge.com    (734)484-5105    (734)544-4326/Fax        |
>| Nugent Telecommunications  [www.nuge.com]     (734)649-0850/Cell       |
>|   Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
>| ISP Monitoring [www.ispmonitor.net] ISP & Modem Performance Monitoring |
>| Web-Pegasus    [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
>| LinuxNIC, Inc. [www.linuxnic.net]   Registrar of the .linux TLD        |
>+------------------------------------------------------------------------+
>  9:01pm  up 158 days, 14:26,  4 users,  load average: 0.71, 0.26, 0.15
>
>_______________________________________________
>Linux-users mailing list
>Linux-users at smtp.linux-sxs.org
>Unsubscribe/Suspend/Etc -> http://smtp.linux-sxs.org/mailman/listinfo/linux-users
>
>
>  
>



More information about the Linux-users mailing list