@UnstableApi public class DefaultDnsPtrRecord extends AbstractDnsRecord implements DnsPtrRecord
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
hostname |
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE| Constructor and Description |
|---|
DefaultDnsPtrRecord(java.lang.String name,
int dnsClass,
long timeToLive,
java.lang.String hostname)
Creates a new PTR record.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
hostname()
Returns the hostname this PTR record resolves to.
|
java.lang.String |
toString() |
dnsClass, equals, hashCode, name, timeToLive, typeclone, finalize, getClass, notify, notifyAll, wait, wait, waitdnsClass, name, timeToLive, typepublic DefaultDnsPtrRecord(java.lang.String name,
int dnsClass,
long timeToLive,
java.lang.String hostname)
name - the domain namednsClass - the class of the record, usually one of the following:
timeToLive - the TTL value of the recordhostname - the hostname this PTR record resolves to.public java.lang.String hostname()
DnsPtrRecordhostname in interface DnsPtrRecordpublic java.lang.String toString()
toString in class AbstractDnsRecord