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

org.xbill.DNS

## Class DNAMERecord

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

- All Implemented Interfaces:
    Serializable, Cloneable, Comparable

      public class DNAMERecord
      extends Record

  DNAME Record - maps a nonterminal alias (subtree) to a different domain
  Author:
    Brian Wellington
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Name` | `singleName`

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

      `dclass, name, ttl, type`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DNAMERecord(Name name, int dclass, long ttl, Name alias)` Creates a new DNAMERecord with the given data

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Name` | `getAlias()` Gets the alias specified by the DNAME Record
    `protected Name` | `getSingleName()`
    `Name` | `getTarget()` Gets the target of the DNAME Record

    - ### 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`

- - ### Field Detail

    - #### singleName

          protected Name singleName

  - ### Constructor Detail

    - #### 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 Detail

    - #### getTarget

          public Name getTarget()

      Gets the target of the DNAME Record

    - #### getAlias

          public Name getAlias()

      Gets the alias specified by the DNAME Record

    - #### getSingleName

          protected Name getSingleName()