Class DnsName

java.lang.Object
org.minidns.dnsname.DnsName
All Implemented Interfaces:
Serializable, CharSequence, Comparable<DnsName>

public final class DnsName
extends Object
implements CharSequence, Serializable, Comparable<DnsName>
A DNS name, also called "domain name". A DNS name consists of multiple 'labels' and is subject to certain restrictions (see for example RFC 3696 § 2.).

Instances of this class can be created by using from(String).

This class holds three representations of a DNS name: ACE, raw ACE and IDN. ACE (ASCII Compatible Encoding), which can be accessed via ace, represents mostly the data that got send over the wire. But since DNS names are case insensitive, the ACE value is normalized to lower case. You can use getRawAce() to get the raw ACE data that was received, which possibly includes upper case characters. The IDN (Internationalized Domain Name), that is the DNS name as it should be shown to the user, can be retrieved using asIdn().

More information about Internationalized Domain Names can be found at:
Author:
Florian Schmaus
See Also:
RFC 3696, Serialized Form