Class DefaultDnsQuestion
java.lang.Object
io.netty.handler.codec.dns.AbstractDnsRecord
io.netty.handler.codec.dns.DefaultDnsQuestion
- All Implemented Interfaces:
DnsQuestion, DnsRecord
The default
DnsQuestion implementation.-
Field Summary
Fields inherited from interface DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDnsQuestion(String name, DnsRecordType type) Creates a newIN-classquestion.DefaultDnsQuestion(String name, DnsRecordType type, int dnsClass) Creates a new question. -
Method Summary
Methods inherited from class AbstractDnsRecord
dnsClass, equals, hashCode, name, timeToLive, typeMethods inherited from interface DnsQuestion
timeToLive
-
Constructor Details
-
DefaultDnsQuestion
Creates a newIN-classquestion.- Parameters:
name- the domain name of the DNS questiontype- the type of the DNS question
-
DefaultDnsQuestion
Creates a new question.- Parameters:
name- the domain name of the DNS questiontype- the type of the DNS questiondnsClass- the class of the record, usually one of the following:
-
-
Method Details
-
toString
- Overrides:
toStringin classAbstractDnsRecord
-