Package org.xbill.DNS

Class Options

java.lang.Object
org.xbill.DNS.Options

public final class Options extends Object
Configuration options for dnsjava.

Boolean options:

  • BINDTTL - Print TTLs in BIND format
  • multiline - Print records in multiline format
  • noPrintIN - Don't print the class of a record if it's IN

Valued options:

  • tsigfudge=n - Sets the default TSIG fudge value (in seconds)
  • sig0validity=n - Sets the default SIG(0) validity period (in seconds)
  • Field Details

  • Constructor Details

    • Options

      private Options()
  • Method Details

    • refresh

      public static void refresh()
    • clear

      public static void clear()
      Clears all defined options
    • set

      public static void set(String option)
      Sets an option to true.
    • set

      public static void set(String option, String value)
      Sets an option to the supplied value
    • unset

      public static void unset(String option)
      Removes an option
    • check

      public static boolean check(String option)
      Checks if an option is defined
    • value

      public static String value(String option)
      Returns the value of an option
    • intValue

      public static int intValue(String option)
      Returns the value of an option as an integer, or -1 if not defined.
    • multiline

      static boolean multiline()