DNS AAAA record payload representing an IPv6 address.
Maps a domain name to an IPv6 address, the IPv6 equivalent of A records.
Maps a domain name to an IPv6 address, the IPv6 equivalent of A records.
Field Summary
Fields inherited from class InternetAddressRR
ipConstructor Summary
ConstructorsConstructorDescriptionAAAA(byte[] ip) Create AAAA record from byte array.AAAA(CharSequence ipv6CharSequence) Create AAAA record from character sequence.AAAA(Inet6Address inet6address) Create AAAA record from IPv6 address.Method Summary
Modifier and TypeMethodDescriptiongetType()The payload type.static AAAAparse(DataInputStream dis) Parse AAAA record from data input stream.toString()Methods inherited from class InternetAddressRR
from, getInetAddress, getIp, serializeModifier and TypeMethodDescriptionstatic InternetAddressRR<? extends InetAddress> from(InetAddress inetAddress) Create an InternetAddressRR from an InetAddress.final Inet6AddressGet the InetAddress for this record.final byte[]getIp()Allocates a new byte buffer and fills the buffer with the bytes representing the IP address of this resource record.final voidWrites the raw address bytes to the stream.Methods inherited from class Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStreamModifier and TypeMethodDescriptionfinal booleanfinal inthashCode()final intlength()Serialize this record, if that has not been done already, and report the resulting wire size.final byte[]Serialize this record, if that has not been done already, and return a copy of the result so callers cannot mutate the cached bytes.final voidWrite the binary representation of this payload to the givenDataOutputStream.final voidtoOutputStream(OutputStream outputStream) Write the binary representation to the given OutputStream.
Constructor Details
AAAA
Create AAAA record from IPv6 address.- Parameters:
inet6address- IPv6 address
AAAA
public AAAA(byte[] ip) Create AAAA record from byte array.- Parameters:
ip- byte array containing IPv6 address (must be 16 bytes)
AAAA
Create AAAA record from character sequence.- Parameters:
ipv6CharSequence- character sequence containing IPv6 address
Method Details
getType
Description copied from class:DataThe payload type.parse
Parse AAAA record from data input stream.- Parameters:
dis- data input stream to read from- Returns:
- parsed AAAA record
- Throws:
IOException- if I/O error occurs
toString