Question
Edvard Tuinder
listbind at lunytune.nl
Wed Jun 23 16:27:05 UTC 2004
According to Jeff Lasman:
> On Wednesday 23 June 2004 08:25 am, Christoph Galuschka wrote:
>
> > I would like to set up some domains who return an IP-address
> > for www.domain.com and the same IP-address for
> > domain.com.
> >
> > Can somebody please tell me what to write in the zonefile.
>
> I can think of two ways to do this.
>
> 1) Create two A records; one for www.domain.com, and one for domain.com,
> each resolving to the same IP#.
>
> 2) Create an A record for domain.com and a CNAME record for
> www.domain.com resolving to domain.com.
>
> Okay, okay, there's a third way; exactly the inverse of #2; let's call
> it #3 <smile>.
No. Only the first 2 options are valid. Your third option is totally
invalid. THough you use smilies, you may not be serious about it, but
one can NOT CNAME a domain to a host. So domain.com. CNAME www.domain.com.
is invalid.
-Ed
More information about the bind-users
mailing list