Package io.netty.resolver.dns
Class DnsAddressDecoder
java.lang.Object
io.netty.resolver.dns.DnsAddressDecoder
Decodes an
InetAddress from an A or AAAA DnsRawRecord.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static InetAddressdecodeAddress(DnsRecord record, String name, boolean decodeIdn) Decodes anInetAddressfrom an A or AAAADnsRawRecord.
-
Field Details
-
INADDRSZ4
private static final int INADDRSZ4- See Also:
-
INADDRSZ6
private static final int INADDRSZ6- See Also:
-
-
Constructor Details
-
DnsAddressDecoder
private DnsAddressDecoder()
-
-
Method Details
-
decodeAddress
Decodes anInetAddressfrom an A or AAAADnsRawRecord.- Parameters:
record- theDnsRecord, most likely aDnsRawRecordname- the host name of the decoded addressdecodeIdn- whether to convertnameto a unicode host name- Returns:
- the
InetAddress, ornullifrecordis not aDnsRawRecordor its content is malformed
-