DHCID Record
DHCP Identifier
What the DHCID record is for
When DHCP servers or clients add A, AAAA and PTR records through dynamic update, two clients can ask for the same name. DHCID (RFC 4701) stores a SHA-256 digest of the client's identifier and the domain name next to those records. Before changing the name, an updater checks that the DHCID matches the client; RFC 4703 describes the procedure.
Because the value is a hash, it identifies the client without revealing its hardware address or client identifier. DHCID records normally live in internal zones managed by DHCP servers, such as ISC Kea or Microsoft DHCP, rather than in public DNS.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| Identifier type code | 16 bits | What was hashed: 0x0000 the DHCPv4 htype and chaddr, 0x0001 the DHCPv4 client identifier, 0x0002 the DHCPv6 DUID. |
| Digest type code | 8 bits | The hash algorithm. 1 is SHA-256, the only one defined. |
| Digest | variable | The hash of the identifier followed by the FQDN (32 octets for SHA-256). |
In zone files the whole RDATA, including the type codes, is written as one base64 block.
Zone file syntax
<owner> <ttl> IN DHCID <base64 rdata>
Example
host.example.com. 3600 IN DHCID AAIBenLAPb2Hm9tx/6vYNh9LM9SGmUJ4tVA4oEZzH/i8r1I=
Identifier type 2 (DUID), digest type 1 (SHA-256), then the digest. It hides which client holds the name.
Common mistakes
- Deleting a host's A or AAAA records by hand but leaving its DHCID. Updaters that follow RFC 4703 will refuse to give the name to another client.
- Copying a DHCID record to another name. The digest includes the FQDN, so it will not match there.
- Running DHCP servers with different conflict-resolution settings on the same zone. One may refuse updates the other expects to make.
Specifications
- RFC 4701: A DNS Resource Record (RR) for Encoding Dynamic Host Configuration Protocol (DHCP) Information (DHCID RR)
- RFC 4703: Resolution of Fully Qualified Domain Name (FQDN) Conflicts among Dynamic Host Configuration Protocol (DHCP) Clients (Defines how updaters use DHCID to decide whether they may change a name.)
- IANA DNS Resource Record (RR) TYPEs registry: type code and status
Domain Intelligence APIs
Get started with our easy-to-use API docs.