org.minidns.record

## Class PTR

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

-     public class PTR
      extends RRWithTarget

  DNS PTR (Pointer) record payload.
  Used for reverse DNS lookups, mapping IP addresses to domain names. Functionally similar to CNAME but used for reverse resolution.

- - ### Field Summary

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

      `target`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PTR(DnsName name)`
    `PTR(String name)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Record.TYPE` | `getType()` The payload type.
    `static PTR` | `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

    - #### PTR

          PTR(DnsName name)

    - #### PTR

          PTR(String name)

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

      Throws:
        `IOException`