@UnstableApi public class DefaultDnsQuestion extends AbstractDnsRecord implements DnsQuestion
DnsQuestion
implementation.CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE
Constructor and Description |
---|
DefaultDnsQuestion(String name,
DnsRecordType type)
Creates a new
IN-class question. |
DefaultDnsQuestion(String name,
DnsRecordType type,
int dnsClass)
Creates a new question.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
dnsClass, equals, hashCode, name, timeToLive, type
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
timeToLive
public DefaultDnsQuestion(String name, DnsRecordType type)
IN-class
question.name
- the domain name of the DNS questiontype
- the type of the DNS questionpublic DefaultDnsQuestion(String name, DnsRecordType type, int dnsClass)
name
- the domain name of the DNS questiontype
- the type of the DNS questiondnsClass
- the class of the record, usually one of the following:
public String toString()
toString
in class AbstractDnsRecord
Copyright © 2008–2017 The Netty Project. All rights reserved.