org.minidns.record

## Class CNAME

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

-     public class CNAME
      extends RRWithTarget

  DNS CNAME (Canonical Name) record payload.
  Maps an alias domain name to a canonical domain name for DNS resolution.

- - ### Field Summary

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

      `target`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CNAME(DnsName target)`
    `CNAME(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 CNAME` | `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

    - #### CNAME

          public CNAME(DnsName target)

    - #### CNAME

          public CNAME(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 CNAME parse(DataInputStream dis,
                                    byte[] data)
                             throws IOException

      Throws:
        `IOException`