java.lang.Object
com.act365.net.dns.DNSWriter
- public class DNSWriter
- extends java.lang.Object
DNSWriter writes DNS messages to a byte stream.
|
Method Summary |
(package private) static byte[] |
write(DNSMessage message)
|
(package private) static int |
write(Query query,
byte[] buffer,
int offset)
|
(package private) static int |
write(ResourceRecord record,
byte[] buffer,
int offset)
|
static byte[] |
write(short identification,
boolean recursion_desired,
java.lang.String domain)
Generates a standard DNS Query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUERY
public static final int QUERY
- See Also:
- Constant Field Values
RESPONSE
public static final int RESPONSE
- See Also:
- Constant Field Values
STANDARD_QUERY
public static final int STANDARD_QUERY
- See Also:
- Constant Field Values
INVERSE_QUERY
public static final int INVERSE_QUERY
- See Also:
- Constant Field Values
SERVER_STATUS_REQUEST
public static final int SERVER_STATUS_REQUEST
- See Also:
- Constant Field Values
AUTHORITATIVE_ANSWER
public static final int AUTHORITATIVE_ANSWER
- See Also:
- Constant Field Values
TRUNCATED
public static final int TRUNCATED
- See Also:
- Constant Field Values
RECURSION_DESIRED
public static final int RECURSION_DESIRED
- See Also:
- Constant Field Values
ITERATIVE_QUERY
public static final int ITERATIVE_QUERY
- See Also:
- Constant Field Values
RECURSIVE_QUERY
public static final int RECURSIVE_QUERY
- See Also:
- Constant Field Values
RECURSION_AVAILABLE
public static final int RECURSION_AVAILABLE
- See Also:
- Constant Field Values
NO_ERROR
public static final int NO_ERROR
- See Also:
- Constant Field Values
NAME_ERROR
public static final int NAME_ERROR
- See Also:
- Constant Field Values
DNSWriter
public DNSWriter()
write
static int write(Query query,
byte[] buffer,
int offset)
write
static int write(ResourceRecord record,
byte[] buffer,
int offset)
write
static byte[] write(DNSMessage message)
write
public static byte[] write(short identification,
boolean recursion_desired,
java.lang.String domain)
throws java.lang.Exception
- Generates a standard DNS Query.