public final class DnsQuestion extends DnsEntry
Constructor and Description |
---|
DnsQuestion(String name,
DnsType type)
Constructs a question with the default class IN (Internet).
|
DnsQuestion(String name,
DnsType type,
DnsClass qClass)
Constructs a question with the given class.
|
public DnsQuestion(String name, DnsType type)
name
- the domain name being queried i.e. "www.example.com"type
- the question type, which represents the type of
DnsResource
record that should be returnedpublic DnsQuestion(String name, DnsType type, DnsClass qClass)
name
- the domain name being queried i.e. "www.example.com"type
- the question type, which represents the type of
DnsResource
record that should be returnedqClass
- the class of a DNS recordCopyright © 2008–2015 The Netty Project. All rights reserved.