*BSD News Article 63296


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!news.uoregon.edu!news.u.washington.edu!uw-beaver!uhog.mit.edu!news.mathworks.com!uunet!in1.uu.net!satisfied.apocalypse.org!usenet.apocalypse.org!sra
From: sra@epilogue.com (Rob Austein)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: [Q] alias "host.domain.name" to "domain.name" - named question
Date: 8 Mar 96 15:14:07
Organization: Epilogue Technology Corporation
Lines: 45
Message-ID: <SRA.96Mar8151407@rurha-pente.epilogue.com>
References: <313EF2E5.606A@ktnet.co.kr>
NNTP-Posting-Host: rurha-pente.epilogue.com
In-reply-to: Sunjin Kim's message of Thu, 07 Mar 1996 23:29:57 +0900

   From: Sunjin Kim <sjkim@ktnet.co.kr>
   Date: Thu, 07 Mar 1996 23:29:57 +0900

     I have a problem with name server on FreeBSD 2.1.0.
     What I want to do is aliasing "host.domain.name" to 
     "domain.name" like youngone.youngone.co.kr -> youngone.co.kr.

This has nothing to do with the FreeBSD name server.  It doesn't
really even have much to do with BIND in general, except that better
error checking in BIND might have told you what's going on.

Your problem is that what you're doing isn't legal DNS.  See RFCs 1034
& 1035 for full details.

   >;aliases
   >news			IN	CNAME	youngone.youngone.co.kr.
   >ns			IN	CNAME	youngone.youngone.co.kr.
   >www			IN	CNAME	youngone.youngone.co.kr.
   >ftp			IN	CNAME	youngone.youngone.co.kr.
   >youngone.co.kr.	IN	CNAME   youngone.youngone.co.kr.

     It wokrs for 2 or 3 days, but after some days resolvers can not
     resolve youngone.co.kr into youngone.youngone.co.kr.

     What is wrong and What can be wrong?
     And What shall I do?

A CNAME RR is not allowed to occupy the same node in the DNS tree
(have the same "owner name") as any other RR.  The symptoms you're
seeing are what I'd expect for this misconfiguration, has to do with
the DNS caching dynamics (TTLs, etcetera).

The legal equivilent to what you're trying to do is something of the
form:

  foo.org.      IN      SOA ...
  foo.org.      IN      A       1.2.3.4
  foo.org.      IN      MX      0 foo.foo.org.
  foo.foo.org.  IN      A       1.2.3.4
  www.foo.org.  IN      CNAME   foo.foo.org.
  ...

Note that the A RRs for foo.org and foo.foo.org are identical.

--Rob Austein <sra@epilogue.com>