@UnstableApi public class DefaultDnsPtrRecord extends AbstractDnsRecord implements DnsPtrRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
Constructor and Description |
---|
DefaultDnsPtrRecord(String name,
int dnsClass,
long timeToLive,
String hostname)
Creates a new PTR record.
|
Modifier and Type | Method and Description |
---|---|
String |
hostname()
Returns the hostname this PTR record resolves to.
|
String |
toString() |
dnsClass, equals, hashCode, name, timeToLive, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dnsClass, name, timeToLive, type
public DefaultDnsPtrRecord(String name, int dnsClass, long timeToLive, 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 String hostname()
DnsPtrRecord
hostname
in interface DnsPtrRecord
public String toString()
toString
in class AbstractDnsRecord
Copyright © 2008–2017 The Netty Project. All rights reserved.