org.xbill.DNS
Class Rcode

java.lang.Object
  |
  +--org.xbill.DNS.Rcode

public final class Rcode
extends Object

Constants and functions relating to DNS rcodes (error values)


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

FORMERR

public static final byte FORMERR
Format error

SERVFAIL

public static final byte SERVFAIL
Server failure

NXDOMAIN

public static final byte NXDOMAIN
The name does not exist

NOTIMPL

public static final byte NOTIMPL
The operation requested is not implemented

REFUSED

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

YXDOMAIN

public static final byte YXDOMAIN
The name exists

YXRRSET

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

NXRRSET

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

NOTAUTH

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

NOTZONE

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

BADVERS

public static final byte BADVERS
Unsupported EDNS level

BADSIG

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

BADKEY

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

BADTIME

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

BADMODE

public static final byte BADMODE
The mode is invalid (TKEY extended error)
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