[OpenAFS] a question about CellServDB and DNS alias

Mark Vitale mvitale@sinenomine.net
Wed, 23 Mar 2022 20:57:27 +0000


> On 23 Mar 2022, at 11:15 AM, Giovanni Bracco <giovanni.bracco@enea.it> wr=
> 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 lin=
> Have I well understood?
> So reading the CellServDB file OpenAFS considers that at a given IP addre=
ss 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.


Mark Vitale
Sine Nomine