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, type
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:DnsPtrRecord
Returns the hostname this PTR record resolves to.- Specified by:
hostname
in interfaceDnsPtrRecord
-
toString
- Overrides:
toString
in classAbstractDnsRecord
-