public class DnsQuestion extends DnsEntry
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE, TYPE_A, TYPE_AAAA, TYPE_AFSDB, TYPE_ANY, TYPE_APL, TYPE_AXFR, TYPE_CAA, TYPE_CERT, TYPE_CNAME, TYPE_DHCID, TYPE_DLV, TYPE_DNAME, TYPE_DNSKEY, TYPE_DS, TYPE_HIP, TYPE_IPSECKEY, TYPE_IXFR, TYPE_KEY, TYPE_KX, TYPE_LOC, TYPE_MX, TYPE_NAPTR, TYPE_NS, TYPE_NSEC, TYPE_NSEC3, TYPE_NSEC3PARAM, TYPE_OPT, TYPE_PTR, TYPE_RP, TYPE_RRSIG, TYPE_SIG, TYPE_SOA, TYPE_SPF, TYPE_SRV, TYPE_SSHFP, TYPE_TA, TYPE_TKEY, TYPE_TLSA, TYPE_TSIG, TYPE_TXT
Constructor and Description |
---|
DnsQuestion(String name,
int type)
Constructs a question with the default class IN (Internet).
|
DnsQuestion(String name,
int type,
int qClass)
Constructs a question with the given class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
public DnsQuestion(String name, int 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, int type, int 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 © 2015. All Rights Reserved.