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.


Field Summary
static int AUTHORITATIVE_ANSWER
           
static int INVERSE_QUERY
           
static int ITERATIVE_QUERY
           
static int NAME_ERROR
           
static int NO_ERROR
           
static int QUERY
           
static int RECURSION_AVAILABLE
           
static int RECURSION_DESIRED
           
static int RECURSIVE_QUERY
           
static int RESPONSE
           
static int SERVER_STATUS_REQUEST
           
static int STANDARD_QUERY
           
static int TRUNCATED
           
 
Constructor Summary
DNSWriter()
           
 
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
 

Field Detail

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
Constructor Detail

DNSWriter

public DNSWriter()
Method Detail

write

public static byte[] write(short identification,
                           boolean recursion_desired,
                           java.lang.String domain)
                    throws java.lang.Exception
Generates a standard DNS Query.