Package org.xbill.DNS

Class A6Record

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.A6Record
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class A6Record extends Record
A6 Record - maps a domain name to an IPv6 address (historic)
Author:
Brian Wellington
See Also:
  • Constructor Details

    • 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 Details

    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Converts rdata to a String
      Specified by:
      rrToString in class Record
    • 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
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
      Specified by:
      rrToWire in class Record