public class PacketDNS extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PacketDNS.MessageCallback |
Modifier and Type | Field and Description |
---|---|
static int |
FLAGS_AA |
static int |
FLAGS_QR |
static int |
FLAGS_RA |
static int |
FLAGS_RD |
static int |
FLAGS_TC |
static int |
INETPORT |
static int |
OPCODE_IQRY |
static int |
OPCODE_NOTIFY |
static int |
OPCODE_QRY |
static int |
OPCODE_STATUS |
static int |
OPCODE_UPDATE |
static int |
PKTHDRSIZ |
static byte |
QCLASS_ALL |
static byte |
QCLASS_CHAOS |
static byte |
QCLASS_HESIOD |
static byte |
QCLASS_INET |
static byte |
QCLASS_NONE |
static int |
RCODE_BADFMT |
static int |
RCODE_BADTRUNC |
static int |
RCODE_BADVERS |
static int |
RCODE_NOTAUTH |
static int |
RCODE_NOTIMPL |
static int |
RCODE_NOTZONE |
static int |
RCODE_NXDOM |
static int |
RCODE_NXRRSET |
static int |
RCODE_OK |
static int |
RCODE_REJ |
static int |
RCODE_SRVFAIL |
static int |
RCODE_YXDOMAIN |
static int |
RCODE_YXRRSET |
static int |
SECT_ANSWERS |
static int |
SECT_AUTH |
static int |
SECT_INFO |
static int |
SECT_QUESTIONS |
static int |
SECT_SUBQUERY |
static int |
TCPMSGLENSIZ |
static int |
UDPMAXMSG |
Constructor and Description |
---|
PacketDNS() |
PacketDNS(int bsiz,
boolean bdirect,
long minttl) |
PacketDNS(long minttl) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
completeEncoding(int off) |
int |
decodeHeader() |
int |
encodeHeader() |
int |
encodeQuestion(int off,
byte qtype,
ByteChars domnam) |
int |
encodeSection(int off,
int sectiontype,
ResourceData[] rr,
TimerNAF.TimeProvider time) |
int |
getAnswerCount() |
int |
getAuthorityCount() |
int |
getInfoCount() |
int |
getQID() |
int |
getQuestionCount() |
static String |
getSectionType(int stype) |
boolean |
isAuth() |
boolean |
isResponse() |
boolean |
isTruncated() |
int |
opcode() |
void |
opcode(int val) |
int |
parseQuestion(int off,
int rrcnt,
InetSocketAddress remote_addr,
PacketDNS.MessageCallback handler) |
int |
parseSection(int off,
byte qtype,
int sectiontype,
int rrcnt,
InetSocketAddress remote_addr,
PacketDNS.MessageCallback handler) |
int |
rcode() |
void |
rcode(int val) |
boolean |
recursionAvailable() |
boolean |
recursionDesired() |
void |
resetDecoder(byte[] buf,
int off,
int len) |
void |
resetEncoder(boolean tcp,
boolean compress) |
void |
setAuth() |
void |
setHeader(int qid,
int qcnt,
int anscnt,
int authcnt,
int infocnt) |
void |
setRecursionAvailable() |
void |
setRecursionDesired() |
void |
setResponse() |
void |
setTruncated() |
int |
skipSection(int off,
int sectiontype,
int rrcnt) |
public static final int INETPORT
public static final int UDPMAXMSG
public static final int PKTHDRSIZ
public static final int TCPMSGLENSIZ
public static final int OPCODE_QRY
public static final int OPCODE_IQRY
public static final int OPCODE_STATUS
public static final int OPCODE_NOTIFY
public static final int OPCODE_UPDATE
public static final int RCODE_OK
public static final int RCODE_BADFMT
public static final int RCODE_SRVFAIL
public static final int RCODE_NXDOM
public static final int RCODE_NOTIMPL
public static final int RCODE_REJ
public static final int RCODE_YXDOMAIN
public static final int RCODE_YXRRSET
public static final int RCODE_NXRRSET
public static final int RCODE_NOTAUTH
public static final int RCODE_NOTZONE
public static final int RCODE_BADVERS
public static final int RCODE_BADTRUNC
public static final byte QCLASS_INET
public static final byte QCLASS_CHAOS
public static final byte QCLASS_HESIOD
public static final byte QCLASS_NONE
public static final byte QCLASS_ALL
public static final int SECT_QUESTIONS
public static final int SECT_ANSWERS
public static final int SECT_AUTH
public static final int SECT_INFO
public static final int SECT_SUBQUERY
public static final int FLAGS_QR
public static final int FLAGS_AA
public static final int FLAGS_TC
public static final int FLAGS_RD
public static final int FLAGS_RA
public PacketDNS()
public PacketDNS(long minttl)
public PacketDNS(int bsiz, boolean bdirect, long minttl)
public static String getSectionType(int stype)
public int rcode()
public void rcode(int val)
public int opcode()
public void opcode(int val)
public boolean isResponse()
public void setResponse()
public boolean isAuth()
public void setAuth()
public boolean isTruncated()
public void setTruncated()
public boolean recursionDesired()
public void setRecursionDesired()
public boolean recursionAvailable()
public void setRecursionAvailable()
public int getQID()
public int getQuestionCount()
public int getAnswerCount()
public int getAuthorityCount()
public int getInfoCount()
public void resetEncoder(boolean tcp, boolean compress)
public void resetDecoder(byte[] buf, int off, int len)
public ByteBuffer completeEncoding(int off)
public void setHeader(int qid, int qcnt, int anscnt, int authcnt, int infocnt)
public int encodeHeader()
public int decodeHeader()
public int skipSection(int off, int sectiontype, int rrcnt)
public int parseQuestion(int off, int rrcnt, InetSocketAddress remote_addr, PacketDNS.MessageCallback handler)
public int parseSection(int off, byte qtype, int sectiontype, int rrcnt, InetSocketAddress remote_addr, PacketDNS.MessageCallback handler)
public int encodeQuestion(int off, byte qtype, ByteChars domnam)
public int encodeSection(int off, int sectiontype, ResourceData[] rr, TimerNAF.TimeProvider time)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.