Class DefaultDnsPtrRecord
java.lang.Object
io.netty.handler.codec.dns.AbstractDnsRecord
io.netty.handler.codec.dns.DefaultDnsPtrRecord
- All Implemented Interfaces:
DnsPtrRecord, DnsRecord
-
Field Summary
FieldsFields inherited from interface DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDnsPtrRecord(java.lang.String name, int dnsClass, long timeToLive, java.lang.String hostname) Creates a new PTR record. -
Method Summary
Methods inherited from class AbstractDnsRecord
dnsClass, equals, hashCode, name, timeToLive, typeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface DnsRecord
dnsClass, name, timeToLive, type
-
Field Details
-
hostname
private final java.lang.String hostname
-
-
Constructor Details
-
DefaultDnsPtrRecord
public DefaultDnsPtrRecord(java.lang.String name, int dnsClass, long timeToLive, java.lang.String hostname) Creates a new PTR record.- Parameters:
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.
-
-
Method Details
-
hostname
public java.lang.String hostname()Description copied from interface:DnsPtrRecordReturns the hostname this PTR record resolves to.- Specified by:
hostnamein interfaceDnsPtrRecord
-
toString
public java.lang.String toString()- Overrides:
toStringin classAbstractDnsRecord
-