public class CNAME extends RRWithTarget
target| Constructor and Description |
|---|
CNAME(DnsName target)Create a CNAME record from a DnsName target. |
CNAME(String target)Create a CNAME record from a string target. |
| Modifier and Type | Method and Description |
|---|---|
Record.TYPE | getType()The payload type. |
static CNAME | parse(DataInputStream dis,
byte[] data)Parse a CNAME record from a data stream. |
getTarget, serialize, toStringequals, hashCode, length, toByteArray, toOutputStream, toOutputStreampublic CNAME(DnsName target)
target - the target domain namepublic CNAME(String target)
target - the target domain namepublic Record.TYPE getType()
Datapublic static CNAME parse(DataInputStream dis, byte[] data) throws IOException
dis - the data input streamdata - the raw record dataIOException - if parsing fails