nanog mailing list archives

Re: DNS hostnames with a duplicate CNAME and A record - which should be removed?


From: William Herrin <bill () herrin us>
Date: Wed, 17 Oct 2012 16:00:49 -0400

On Wed, Oct 17, 2012 at 3:25 PM, Landon Stewart <lstewart () superb net> wrote:
The problem is that we have some zones that have records with the same
hostname that have both a CNAME as well as an A record, MX record, SOA
record and/or NS record.  Is there an easy answer for what should be
removed?  I'm inclined to say that the CNAME should be removed in all these
cases but I can't find any definitive information on this and after doing
some tests it doesn't always seem straightforward.

If you have a CNAME record for a particular name, you should not have
any other record of any type for that same name. Which you should
remove depends on the details of the particular circumstance. If you
really mean "identical to that other name with respect to all records
and record types" then there's nothing inherently wrong with the
CNAME. If you don't, then you shouldn't use a CNAME there.

Regards,
Bill Herrin


-- 
William D. Herrin ................ herrin () dirtside com  bill () herrin us
3005 Crane Dr. ...................... Web: <http://bill.herrin.us/>
Falls Church, VA 22042-3004


Current thread: