Re: [OpenAFS] a question about CellServDB and DNS alias
On 3/23/2022 11:15 AM, Giovanni Bracco ([email protected]) wrote: > In the documentation for the CellServDB file (both client & server) > https://docs.openafs.org/Reference/5/CellServDB.html > > it is declared that is the "fully qualified hostname" > that must be provided in the line defining a dbserver. The specified DNS hostname can either be an A record or a CNAME record. The hostname is only used by the Windows Cache Manager, Windows authentication provider, and Windows network provider. All of the command line tools, the UNIX cache manager, and the servers only use the specified IP address. Jeffrey Altman smime.p7s Description: S/MIME Cryptographic Signature
Re: [OpenAFS] a question about CellServDB and DNS alias
So on Unix/linux systems only the ip address is relevant. Is that true both for OpenAFS client and servers? On Windows clients there must be consistency between the ip address and the DNS entry of the #hostname portion of CellServDB file Giovanni On 23/03/22 21:57, Mark Vitale wrote: Giovanni, On 23 Mar 2022, at 11:15 AM, Giovanni Bracco wrote: In the documentation for the CellServDB file (both client & server) https://docs.openafs.org/Reference/5/CellServDB.html it is declared that is the "fully qualified hostname" that must be provided in the line defining a dbserver. So even if a dbserver has an alias in the DNS different from the hostname, it is definitely the hostname that must be provided in the CellServDB line. Have I well understood? So reading the CellServDB file OpenAFS considers that at a given IP address it will find the hostname defined in the CellServDB file line. (by the way: we do not have AFSDB records in our DNS) The "#hostname" portion of a CellServDB server line is only processed by OpenAFS when running on Windows. It is ignored on other platforms. I only know that whatever is there has to be resolvable by Windows gethostbyname(). I don't know if it has to be fully-qualified, but I suspect that depends on the configuration of your Windows resolver. If it cannot be resolved for any reason, the Windows code falls back to the IP address specified in the first token. (src/WINNT/afsd/cm_config.c) Regards, -- Mark Vitale Sine Nomine -- Giovanni Bracco phone +39 351 8804788 E-mail [email protected] WWW http://www.afs.enea.it/bracco ___ OpenAFS-info mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-info
Re: [OpenAFS] a question about CellServDB and DNS alias
Giovanni, > On 23 Mar 2022, at 11:15 AM, Giovanni Bracco wrote: > > In the documentation for the CellServDB file (both client & server) > https://docs.openafs.org/Reference/5/CellServDB.html > > it is declared that is the "fully qualified hostname" > that must be provided in the line defining a dbserver. > > So even if a dbserver has an alias in the DNS different from the hostname, it > is definitely the hostname that must be provided in the CellServDB line. > > Have I well understood? > > So reading the CellServDB file OpenAFS considers that at a given IP address > it will find the hostname defined in the CellServDB file line. > > (by the way: we do not have AFSDB records in our DNS) The "#hostname" portion of a CellServDB server line is only processed by OpenAFS when running on Windows. It is ignored on other platforms. I only know that whatever is there has to be resolvable by Windows gethostbyname(). I don't know if it has to be fully-qualified, but I suspect that depends on the configuration of your Windows resolver. If it cannot be resolved for any reason, the Windows code falls back to the IP address specified in the first token. (src/WINNT/afsd/cm_config.c) Regards, -- Mark Vitale Sine Nomine ___ OpenAFS-info mailing list [email protected] https://lists.openafs.org/mailman/listinfo/openafs-info
