org.minidns.record

## Class DNAME

- java.lang.Object
- - org.minidns.record.Data
  - - org.minidns.record.RRWithTarget
    - - org.minidns.record.DNAME

-     public class DNAME
      extends RRWithTarget

  DNS DNAME (Domain Name) redirection record payload.
  Provides redirection of an entire subtree of the DNS name space to another domain, similar to CNAME but for entire subtrees.
  See Also:
    RFC 6672 - DNAME Redirection in the DNS

- - ### Field Summary

    - ### Fields inherited from class org.minidns.record.RRWithTarget

      `target`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DNAME(DnsName target)`
    `DNAME(String target)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Record.TYPE` | `getType()` The payload type.
    `static DNAME` | `parse(DataInputStream dis, byte[] data)`

    - ### Methods inherited from class org.minidns.record.RRWithTarget

      `getTarget, serialize, toString`

    - ### Methods inherited from class org.minidns.record.Data

      `equals, hashCode, length, toByteArray, toOutputStream, toOutputStream`

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

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

- - ### Constructor Detail

    - #### DNAME

          public DNAME(DnsName target)

    - #### DNAME

          public DNAME(String target)

  - ### Method Detail

    - #### getType

          public Record.TYPE getType()

      Description copied from class: `Data`
      The payload type.
      Specified by:
        `getType` in class `Data`
      Returns:
        The payload type.

    - #### parse

          public static DNAME parse(DataInputStream dis,
                                    byte[] data)
                             throws IOException

      Throws:
        `IOException`