zone data file

Barry Margolin barry.margolin at level3.com
Wed Jul 30 17:12:16 UTC 2003


In article <bg8u2a$1asm$1 at sf1.isc.org>,
Hiranya Samarasekera <hiranya_linuxDELETE_THIS at hotmail.com> wrote:
>Hi,
>
>I can access my website as http://www.domain.com. But i cannot access the
>site as http://domain.com. (without the www). Do i have to create a CNAME
>record to point to www.domain.com or does this have to do something with
>Apache Virtual host configuration alone (i use name based virtual hosting).
>I have a defined the <ServerAlias> directive in my httpd.conf file.

You need an A record for domain.com:

domain.com.     A <address of your server>
www.domain.com. CNAME domain.com.

You also need the virtual host configuration to recognize both names.

-- 
Barry Margolin, barry.margolin at level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list