Class DomainName

All Implemented Interfaces:
DtoFactory<DomainName>, FastExternalizable, Internable<DomainName>, Externalizable, Serializable, Comparable<DomainName>

public final class DomainName extends Object implements Comparable<DomainName>, FastExternalizable, DtoFactory<DomainName>, Internable<DomainName>
Represents a DNS domain name. Domain names must:
  • Be non-null
  • Be non-empty
  • May not be "default" (case-insensitive) - to avoid conflicts with Cyrus no-domain configurations.
  • Conform to definition in and
  • May be "localhost" or "localhost.localdomain" - other checks that conflict with this are skipped.
  • Last domain label must be alphabetic (not be all numeric)
  • Last label must be a valid top level domain.
  • For reverse IP address delegation, if the domain ends with "", the first label may also be in the format "##/##".
  • Not end with a period (.)
AO Industries, Inc.
See Also: