org.xbill.DNS
Class Rcode

java.lang.Object
  extended byorg.xbill.DNS.Rcode

public final class Rcode
extends Object

Constants and functions relating to DNS rcodes (error values)

Author:
Brian Wellington

Field Summary
static byte BADKEY
          The key is invalid (TSIG/TKEY extended error)
static byte BADMODE
          The mode is invalid (TKEY extended error)
static byte BADSIG
          The signature is invalid (TSIG/TKEY extended error)
static byte BADTIME
          The time is out of range (TSIG/TKEY extended error)
static byte BADVERS
          Unsupported EDNS level
static byte FORMERR
          Format error
static byte NOERROR
          No error
static byte NOTAUTH
          The requestor is not authorized to perform this operation
static byte NOTIMPL
          The operation requested is not implemented
static byte NOTZONE
          The zone specified is not a zone
static byte NXDOMAIN
          The name does not exist
static byte NXRRSET
          The RRset (name, type) does not exist
static byte REFUSED
          The operation was refused by the server
static byte SERVFAIL
          Server failure
static byte YXDOMAIN
          The name exists
static byte YXRRSET
          The RRset (name, type) exists
 
Method Summary
static String string(int i)
          Converts a numeric Rcode into a String
static String TSIGstring(int i)
          Converts a numeric TSIG extended Rcode into a String
static byte value(String s)
          Converts a String representation of an Rcode into its numeric value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOERROR

public static final byte NOERROR
No error

See Also:
Constant Field Values

FORMERR

public static final byte FORMERR
Format error

See Also:
Constant Field Values

SERVFAIL

public static final byte SERVFAIL
Server failure

See Also:
Constant Field Values

NXDOMAIN

public static final byte NXDOMAIN
The name does not exist

See Also:
Constant Field Values

NOTIMPL

public static final byte NOTIMPL
The operation requested is not implemented

See Also:
Constant Field Values

REFUSED

public static final byte REFUSED
The operation was refused by the server

See Also:
Constant Field Values

YXDOMAIN

public static final byte YXDOMAIN
The name exists

See Also:
Constant Field Values

YXRRSET

public static final byte YXRRSET
The RRset (name, type) exists

See Also:
Constant Field Values

NXRRSET

public static final byte NXRRSET
The RRset (name, type) does not exist

See Also:
Constant Field Values

NOTAUTH

public static final byte NOTAUTH
The requestor is not authorized to perform this operation

See Also:
Constant Field Values

NOTZONE

public static final byte NOTZONE
The zone specified is not a zone

See Also:
Constant Field Values

BADVERS

public static final byte BADVERS
Unsupported EDNS level

See Also:
Constant Field Values

BADSIG

public static final byte BADSIG
The signature is invalid (TSIG/TKEY extended error)

See Also:
Constant Field Values

BADKEY

public static final byte BADKEY
The key is invalid (TSIG/TKEY extended error)

See Also:
Constant Field Values

BADTIME

public static final byte BADTIME
The time is out of range (TSIG/TKEY extended error)

See Also:
Constant Field Values

BADMODE

public static final byte BADMODE
The mode is invalid (TKEY extended error)

See Also:
Constant Field Values
Method Detail

string

public static String string(int i)
Converts a numeric Rcode into a String


TSIGstring

public static String TSIGstring(int i)
Converts a numeric TSIG extended Rcode into a String


value

public static byte value(String s)
Converts a String representation of an Rcode into its numeric value