Package io.netty.handler.codec.dns
Interface DnsRecord
- All Known Subinterfaces:
DnsOptEcsRecord
,DnsOptPseudoRecord
,DnsPtrRecord
,DnsQuestion
,DnsRawRecord
- All Known Implementing Classes:
AbstractDnsOptPseudoRrRecord
,AbstractDnsRecord
,DefaultDnsOptEcsRecord
,DefaultDnsPtrRecord
,DefaultDnsQuestion
,DefaultDnsRawRecord
A DNS resource record.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
DNS resource record class:ANY
static final int
DNS resource record class:CHAOS
static final int
DNS resource record class:CSNET
static final int
DNS resource record class:HESIOD
static final int
DNS resource record class:IN
static final int
DNS resource record class:NONE
-
Method Summary
-
Field Details
-
CLASS_IN
static final int CLASS_INDNS resource record class:IN
- See Also:
-
CLASS_CSNET
static final int CLASS_CSNETDNS resource record class:CSNET
- See Also:
-
CLASS_CHAOS
static final int CLASS_CHAOSDNS resource record class:CHAOS
- See Also:
-
CLASS_HESIOD
static final int CLASS_HESIODDNS resource record class:HESIOD
- See Also:
-
CLASS_NONE
static final int CLASS_NONEDNS resource record class:NONE
- See Also:
-
CLASS_ANY
static final int CLASS_ANYDNS resource record class:ANY
- See Also:
-
-
Method Details
-
name
String name()Returns the name of this resource record. -
type
DnsRecordType type()Returns the type of this resource record. -
dnsClass
int dnsClass()Returns the class of this resource record.- Returns:
- the class value, usually one of the following:
-
timeToLive
long timeToLive()Returns the time to live after reading for this resource record.
-