@UnstableApi public class DefaultDnsPtrRecord extends AbstractDnsRecord implements DnsPtrRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
Constructor and Description |
---|
DefaultDnsPtrRecord(java.lang.String name, int dnsClass, long timeToLive, java.lang.String hostname)
创建一个新的PTR记录。
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
hostname()
返回此PTR记录解析为的主机名。
|
java.lang.String |
toString() |
dnsClass, equals, hashCode, name, timeToLive, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dnsClass, name, timeToLive, type
public DefaultDnsPtrRecord(java.lang.String name, int dnsClass, long timeToLive, java.lang.String hostname)
name
- 域名
dnsClass
- 记录的类别,通常为以下之一:
timeToLive
- 记录的TTL值
hostname
- 此PTR记录解析为的主机名。
public java.lang.String hostname()
DnsPtrRecord
hostname
在界面
DnsPtrRecord
public java.lang.String toString()
toString
在课程
AbstractDnsRecord
Copyright © 2008–2018 The Netty Project. All rights reserved.