Package org.xbill.DNS

Class Flags

java.lang.Object
org.xbill.DNS.Flags

public final class Flags extends Object
Constants and functions relating to flags in the DNS header.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final byte
    authoritative answer
    static final byte
    authenticated data
    static final byte
    (security) checking disabled
    static final int
    dnssec ok (extended)
    private static final Mnemonic
     
    static final byte
    query/response
    static final byte
    recursion available
    static final byte
    recursion desired
    static final byte
    truncated
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isFlag(int index)
    Indicates if a bit in the flags field is a flag or not.
    static String
    string(int i)
    Converts a numeric Flag into a String
    static int
    Converts a String representation of an Flag into its numeric value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Flags

      private Flags()
  • Method Details

    • string

      public static String string(int i)
      Converts a numeric Flag into a String
    • value

      public static int value(String s)
      Converts a String representation of an Flag into its numeric value
    • isFlag

      public static boolean isFlag(int index)
      Indicates if a bit in the flags field is a flag or not. If it's part of the rcode or opcode, it's not.