Class DefaultDnsPtrRecord
java.lang.Object
io.netty.handler.codec.dns.AbstractDnsRecord
io.netty.handler.codec.dns.DefaultDnsPtrRecord
- All Implemented Interfaces:
DnsPtrRecord, DnsRecord
-
Field Summary
Fields inherited from interface 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 AbstractDnsRecord
dnsClass, equals, hashCode, name, timeToLive, typeMethods inherited from interface DnsRecord
dnsClass, name, timeToLive, type
-
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
-