[OpenAFS] minor bug: -afsdb does not understand CNAME

Frank Burkhardt fbo2@gmx.net
Mon, 12 Dec 2005 10:11:02 +0100


On Sun, Dec 11, 2005 at 10:50:34PM -0800, Adam Megacz wrote:
> Apparently if the host listed in an AFSDB entry is a CNAME record,
> afsd will not chase the reference.
> I take it that afsd doesn't use the usual gethostbyname() to resolve
> the hostname it gets after pulling an AFSDB record... is there a
> reason why this is the case?

$ host -t AFSDB -l cbs.mpg.de
cbs.mpg.de.             AFSDB   1 afsdb1.cbs.mpg.de.
cbs.mpg.de.             AFSDB   1 afsdb2.cbs.mpg.de.
cbs.mpg.de.             AFSDB   1 afsdb3.cbs.mpg.de.
cbs.mpg.de.             AFSDB   1 afsdb4.cbs.mpg.de.
cbs.mpg.de.             AFSDB   1 afsdb5.cbs.mpg.de.
$ host afsdb1
afsdb1.cbs.mpg.de       CNAME   dresden.cbs.mpg.de
dresden.cbs.mpg.de      A

It's working here - all AFSDBs are CNAMEs.

are you using a single-component-cellname
(foobar) and not a multi-component one (foo.bar) ?
There's a bug in recent glibc which makes using AFSDB-DNS-records
impossible for "dotless" cells - at least without a patch
applied to the openafs-source.