Package 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)
Author:
Brian Wellington
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Algorithm not supported (TKEY extended error)
    static final int
    Bad or missing server cookie (RFC 7873)
    static final int
    The key is invalid (TSIG/TKEY extended error)
    static final int
    The mode is invalid (TKEY extended error)
    static final int
    Duplicate key name (TKEY extended error)
    static final int
    The signature is invalid (TSIG/TKEY extended error)
    static final int
    The time is out of range (TSIG/TKEY extended error)
    static final int
    Bad truncation (RFC 4635)
    static final int
    Unsupported EDNS level
    static final int
    Format error
    static final int
    No error
    static final int
    The requestor is not authorized to perform this operation
    static final int
    The operation requested is not implemented
    static final int
    Deprecated.
    Use NOTIMP.
    static final int
    The zone specified is not a zone
    static final int
    The name does not exist
    static final int
    The RRset (name, type) does not exist
    static final int
    The operation was refused by the server
    static final int
    Server failure
    static final int
    The name exists
    static final int
    The RRset (name, type) exists
  • Method Summary

    Modifier and Type
    Method
    Description
    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 int
    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 Details

    • NOERROR

      public static final int NOERROR
      No error
      See Also:
    • FORMERR

      public static final int FORMERR
      Format error
      See Also:
    • SERVFAIL

      public static final int SERVFAIL
      Server failure
      See Also:
    • NXDOMAIN

      public static final int NXDOMAIN
      The name does not exist
      See Also:
    • NOTIMP

      public static final int NOTIMP
      The operation requested is not implemented
      See Also:
    • NOTIMPL

      @Deprecated public static final int NOTIMPL
      Deprecated.
      Use NOTIMP.
      Synonym for NOTIMP.
      See Also:
    • REFUSED

      public static final int REFUSED
      The operation was refused by the server
      See Also:
    • YXDOMAIN

      public static final int YXDOMAIN
      The name exists
      See Also:
    • YXRRSET

      public static final int YXRRSET
      The RRset (name, type) exists
      See Also:
    • NXRRSET

      public static final int NXRRSET
      The RRset (name, type) does not exist
      See Also:
    • NOTAUTH

      public static final int NOTAUTH
      The requestor is not authorized to perform this operation
      See Also:
    • NOTZONE

      public static final int NOTZONE
      The zone specified is not a zone
      See Also:
    • BADVERS

      public static final int BADVERS
      Unsupported EDNS level
      See Also:
    • BADSIG

      public static final int BADSIG
      The signature is invalid (TSIG/TKEY extended error)
      See Also:
    • BADKEY

      public static final int BADKEY
      The key is invalid (TSIG/TKEY extended error)
      See Also:
    • BADTIME

      public static final int BADTIME
      The time is out of range (TSIG/TKEY extended error)
      See Also:
    • BADMODE

      public static final int BADMODE
      The mode is invalid (TKEY extended error)
      See Also:
    • BADNAME

      public static final int BADNAME
      Duplicate key name (TKEY extended error)
      See Also:
    • BADALG

      public static final int BADALG
      Algorithm not supported (TKEY extended error)
      See Also:
    • BADTRUNC

      public static final int BADTRUNC
      Bad truncation (RFC 4635)
      See Also:
    • BADCOOKIE

      public static final int BADCOOKIE
      Bad or missing server cookie (RFC 7873)
      See Also:
  • Method Details

    • 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 int value(String s)
      Converts a String representation of an Rcode into its numeric value