DHCP/DDNS and CNAME

Will Yardley william+dns at hq.newdream.net
Mon Sep 24 07:17:07 UTC 2001


Sylvain ROY wrote:
> I don't knox how to use CNAME statis in zone file (can't find it in
> the documentation ..)
> 
> If you can more explain please. In fact, I would like to have
> systematically a CNAME for each A of a zone ...

can you explain your question more thoroughly?  a CNAME record is added
in the same way that any other record is added, although there are
certain restrictions.

you _cannot_ add a CNAME for a record for which any other type of record
already exists.

ie you can have:
www		IN  A	 123.123.123.123
		IN MX	  0 mail.blah.com.
or:
www		IN CNAME blah.com.

but you can't have:
www		IN A	 123.123.123.123
		IN CNAME somewhereelse.com.
		IN MX	 0 mail.blah.com.

CNAMEs are mutually exclusive of other records, and must point to a
canonical hostname.  you should not use a CNAME for anything you will be
pointing an MX or NS record to.

can you give an example of what you're trying to do and explain why you
need to use CNAME records?  generally it's best to avoid them altogether
until you fully understand them, and the times when it's appropriate to
use them.  in most cases it's better to use some other type of record.

w

-- 
GPG Public Key:
http://infinitejazz.net/will/pgp/


More information about the bind-users mailing list