Interface DnsMessage.Rdata

All Known Implementing Classes:
DnsMessage.Address, DnsMessage.Mx, DnsMessage.Name, DnsMessage.Opaque, DnsMessage.Soa, DnsMessage.Srv, DnsMessage.Txt
Enclosing class:
DnsMessage

  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    encode(int type)
    The RDATA for a record of type.
    Returns the data in presentation format, as a zone file shows it.
  • Method Details

    • text

      String text()
      Returns the data in presentation format, as a zone file shows it.
      Returns:
      the data in presentation format, as a zone file shows it
    • encode

      byte[] encode(int type)
      The RDATA for a record of type.
      Parameters:
      type - the record's type
      Returns:
      the RDATA bytes
      Throws:
      IllegalArgumentException - if this data does not suit type