Enum Class RcodeType

java.lang.Object
java.lang.Enum<RcodeType>
nl.sidnlabs.dnslib.types.RcodeType
All Implemented Interfaces:
Serializable, Comparable<RcodeType>, Constable

public enum RcodeType extends Enum<RcodeType>
DNS RCODEs Registration Procedures IETF Review Reference [RFC6895][RFC1035] RCODE Name Description Reference 0 NoError No Error [RFC1035] 1 FormErr Format Error [RFC1035] 2 ServFail Server Failure [RFC1035] 3 NXDomain Non-Existent Domain [RFC1035] 4 NotImp Not Implemented [RFC1035] 5 Refused Query Refused [RFC1035] 6 YXDomain Name Exists when it should not [RFC2136] 7 YXRRSet RR Set Exists when it should not [RFC2136] 8 NXRRSet RR Set that should exist does not [RFC2136] 9 NotAuth Server Not Authoritative for zone [RFC2136] 9 NotAuth Not Authorized [RFC2845] 10 NotZone Name not contained in zone [RFC2136] 11-15 Unassigned 16 BADVERS Bad OPT Version [RFC-ietf-dnsext-rfc2671bis-edns0-10] 16 BADSIG TSIG Signature Failure [RFC2845] 17 BADKEY Key not recognized [RFC2845] 18 BADTIME Signature out of time window [RFC2845] 19 BADMODE Bad TKEY Mode [RFC2930] 20 BADNAME Duplicate key name [RFC2930] 21 BADALG Algorithm not supported [RFC2930] 22 BADTRUNC Bad Truncation [RFC4635] 23 BADCOOKIE Bad/missing Server Cookie [RFC7873] 24-3840 Unassigned 3841-4095 Reserved for Private Use [RFC-ietf-dnsext-rfc6195bis-05] 4096-65534 Unassigned 65535 Reserved, can be allocated by Standards Action [RFC-ietf-dnsext-rfc6195bis-05]
  • Enum Constant Details

    • NO_ERROR

      public static final RcodeType NO_ERROR
    • FORMAT_ERROR

      public static final RcodeType FORMAT_ERROR
    • SERVER_FAILURE

      public static final RcodeType SERVER_FAILURE
    • NXDOMAIN

      public static final RcodeType NXDOMAIN
    • NOT_IMPLEMENTED

      public static final RcodeType NOT_IMPLEMENTED
    • REFUSED

      public static final RcodeType REFUSED
    • YXDOMAIN

      public static final RcodeType YXDOMAIN
    • YXRRSET

      public static final RcodeType YXRRSET
    • NXRRSET

      public static final RcodeType NXRRSET
    • NOTAUTH

      public static final RcodeType NOTAUTH
    • NOTZONE

      public static final RcodeType NOTZONE
    • BADVERS_OR_BADSIG

      public static final RcodeType BADVERS_OR_BADSIG
    • BADKEY

      public static final RcodeType BADKEY
    • BADTIME

      public static final RcodeType BADTIME
    • BADMODE

      public static final RcodeType BADMODE
    • BADNAME

      public static final RcodeType BADNAME
    • BADALG

      public static final RcodeType BADALG
    • BADTRUNC

      public static final RcodeType BADTRUNC
    • BADCOOKIE

      public static final RcodeType BADCOOKIE
    • RESERVED

      public static final RcodeType RESERVED
  • Method Details

    • values

      public static RcodeType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RcodeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public char getValue()
    • fromValue

      public static RcodeType fromValue(int value)