Package org.xbill.DNS

Class DNAMERecord

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

public class DNAMERecord extends Record
DNAME Record - maps a nonterminal alias (subtree) to a different domain
Author:
Brian Wellington
See Also:
  • Field Details

    • singleName

      protected Name singleName
  • Constructor Details

    • DNAMERecord

      public DNAMERecord(Name name, int dclass, long ttl, Name alias)
      Creates a new DNAMERecord with the given data
      Parameters:
      alias - The name to which the DNAME alias points
  • Method Details

    • getTarget

      public Name getTarget()
      Gets the target of the DNAME Record
    • getAlias

      @Deprecated public Name getAlias()
      Deprecated.
      Gets the name of this record, aka the alias or label to the delegation name specified in getTarget().
    • 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()
      Description copied from class: Record
      Converts the type-specific RR to text format - must be overridden.
      Specified by:
      rrToString in class Record
    • getSingleName

      protected Name getSingleName()
    • 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