Class DnsLabel

java.lang.Object
org.minidns.dnslabel.DnsLabel
All Implemented Interfaces:
CharSequence, Comparable<DnsLabel>
Direct Known Subclasses:
LdhLabel, NonLdhLabel

public abstract class DnsLabel
extends Object
implements CharSequence, Comparable<DnsLabel>
A DNS label is an individual component of a DNS name. Labels are usually shown separated by dots.

This class implements Comparable which compares DNS labels according to the Canonical DNS Name Order as specified in RFC 4034 § 6.1.

Note that as per RFC 2181 § 11 DNS labels may contain any byte.

Author:
Florian Schmaus
See Also:
RFC 5890 § 2.2. DNS-Related Terminology