AFSDB Record

AFS Database Location

What the AFSDB record is for

RFC 1183 defines AFSDB to locate the database servers of an AFS (Andrew File System) cell, using the cell name as the owner name. Subtype 1 marks an AFS volume location server; subtype 2 marks a DCE authenticated name server.

RFC 5864 deprecates AFSDB for locating AFS servers and replaces it with SRV records (_afs3-vlserver._udp and _afs3-prserver._udp), which carry ports, priorities and weights. Because many AFS clients only understand AFSDB, it still says cells that publish SRV records should also keep AFSDB records, and clients should fall back to them. University AFS cells still publish both.

Wire format and fields

FieldSizeMeaning
subtype16 bits1 for an AFS cell database server, 2 for a DCE authenticated name server.
hostnamedomain nameThe host running the server.

Zone file syntax

<cell> <ttl> IN AFSDB <subtype> <hostname>

Example

example.com. 3600 IN AFSDB 1 afsdb1.example.com.
example.com. 3600 IN AFSDB 1 afsdb2.example.com.

Subtype 1 marks an AFS cell database server.

Common mistakes

  • Publishing only SRV records. Older AFS clients only look up AFSDB, so RFC 5864 recommends keeping both.
  • Listing a server in AFSDB that does not run both the volume location and protection services on the standard UDP ports 7003 and 7002. AFSDB has no port field, so clients assume those ports.
  • Expecting AFSDB to express a preferred server. Unlike SRV it has no priority or weight, so clients treat all listed servers as equal.
  • Pointing the hostname at a CNAME. Like MX and NS targets, the hostname should be a name with its own address records.

Specifications

Domain Intelligence APIs

Get started with our easy-to-use API docs.