Encode labels and records
02DNS names use length-prefixed labels ending with the zero-length root label.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
DIAGRAM§ 3.1 ↗
RFC 1035 · § 3.1EXAMPLE
3 / 3
03
Attach typed record fields and their data.
Attach typed record fields and their data.
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
Read the updated RFC section ↗
An ordinary label is at most 63 octets; the full encoded name is at most 255.
- An ordinary label is at most 63 octets; the full encoded name is at most 255.
- Resource records add TYPE, CLASS, TTL, RDLENGTH, and type-specific RDATA.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
Read the RFC section ↗Diagrams simplify the RFC. Read the linked sections for complete requirements.
Privacy