@UnstableApi public class DefaultDnsPtrRecord extends AbstractDnsRecord implements DnsPtrRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
构造器和说明 |
---|
DefaultDnsPtrRecord(java.lang.String name,
int dnsClass,
long timeToLive,
java.lang.String hostname)
Creates a new PTR record.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
hostname()
Returns the hostname this PTR record resolves to.
|
java.lang.String |
toString() |
dnsClass, equals, hashCode, name, timeToLive, type
dnsClass, name, timeToLive, type
public DefaultDnsPtrRecord(java.lang.String name, int dnsClass, long timeToLive, java.lang.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 java.lang.String hostname()
DnsPtrRecord
hostname
在接口中 DnsPtrRecord
public java.lang.String toString()
toString
在类中 AbstractDnsRecord