Re: [OpenAFS] minor bug: -afsdb does not understand CNAME
Hi, 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 10.0.181.11 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. Regards, Frank ___ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info
Re: [OpenAFS] minor bug: -afsdb does not understand CNAME
Adam Megacz [EMAIL PROTECTED] writes: I take it that afsd doesn't use the usual gethostbyname() to resolve the hostname it gets after pulling an AFSDB record... It does indeed use gethostbyname(): if ((afsdb_type == 1) (server_num MAXHOSTSPERCELL) /* Do we want to get TTL data for the A record as well? */ (he = gethostbyname(host))) { afs_int32 ipaddr; memcpy(ipaddr, he-h_addr, he-h_length); acellInfo-hostAddr[server_num].sin_addr.s_addr = ipaddr; strncpy(acellInfo-hostName[server_num], host, sizeof(acellInfo-hostName[server_num])); server_num++; if (!minttl || ttl minttl) minttl = ttl; } (src/auth/cellconfig.c). -- Russ Allbery ([EMAIL PROTECTED]) http://www.eyrie.org/~eagle/ ___ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info
[OpenAFS] minor bug: -afsdb does not understand CNAME
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? - a -- PGP/GPG: 5C9F F366 C9CF 2145 E770 B1B8 EFB1 462D A146 C380 Q: Won't the pendulum swing back? A: It has never been a pendulum. Think tectonic plates instead. -- from patrick.net ___ OpenAFS-info mailing list OpenAFS-info@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-info