A6Record (dnsjava documentation)
Date: 2013-04-10

org.xbill.DNS

## Class A6Record

- java.lang.Object
- - org.xbill.DNS.Record
  - - org.xbill.DNS.A6Record

- All Implemented Interfaces:
    Serializable, Cloneable, Comparable

      public class A6Record
      extends Record

  A6 Record - maps a domain name to an IPv6 address (experimental)
  Author:
    Brian Wellington
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from class org.xbill.DNS.Record

      `dclass, name, ttl, type`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `A6Record(Name name, int dclass, long ttl, int prefixBits, InetAddress suffix, Name prefix)` Creates an A6 Record from the given data

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Name` | `getPrefix()` Returns the address prefix
    `int` | `getPrefixBits()` Returns the number of bits in the prefix
    `InetAddress` | `getSuffix()` Returns the address suffix

    - ### Methods inherited from class org.xbill.DNS.Record

      `byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### A6Record

          public A6Record(Name name,
                  int dclass,
                  long ttl,
                  int prefixBits,
                  InetAddress suffix,
                  Name prefix)

      Creates an A6 Record from the given data
      Parameters:
        `prefixBits` - The number of bits in the address prefix
        `suffix` - The address suffix
        `prefix` - The name of the prefix

  - ### Method Detail

    - #### getPrefixBits

          public int getPrefixBits()

      Returns the number of bits in the prefix

    - #### getSuffix

          public InetAddress getSuffix()

      Returns the address suffix

    - #### getPrefix

          public Name getPrefix()

      Returns the address prefix