com.act365.net.dns
Class DNSWriter
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 |
static byte[] |
write(short identification,
boolean recursion_desired,
java.lang.String domain)
Generates a standard DNS Query. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUERY
public static final int QUERY
RESPONSE
public static final int RESPONSE
STANDARD_QUERY
public static final int STANDARD_QUERY
INVERSE_QUERY
public static final int INVERSE_QUERY
SERVER_STATUS_REQUEST
public static final int SERVER_STATUS_REQUEST
AUTHORITATIVE_ANSWER
public static final int AUTHORITATIVE_ANSWER
TRUNCATED
public static final int TRUNCATED
RECURSION_DESIRED
public static final int RECURSION_DESIRED
ITERATIVE_QUERY
public static final int ITERATIVE_QUERY
RECURSIVE_QUERY
public static final int RECURSIVE_QUERY
RECURSION_AVAILABLE
public static final int RECURSION_AVAILABLE
NO_ERROR
public static final int NO_ERROR
NAME_ERROR
public static final int NAME_ERROR
DNSWriter
public DNSWriter()
write
public static byte[] write(short identification,
boolean recursion_desired,
java.lang.String domain)
throws java.lang.Exception
- Generates a standard DNS Query.