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