Top Description Methods
io.netty5.handler.codec.dns

public Interface DnsOptEcsRecord

extends DnsOptPseudoRecord
Known Direct Implementers
io.netty5.handler.codec.dns.DefaultDnsOptEcsRecord
Annotations
@UnstableApi
Imports
io.netty5.util.internal.UnstableApi, java.net.InetAddress

An ECS record as defined in Client Subnet in DNS Queries.

Method Summary

Modifier and TypeMethod and Description
public byte[]
address()

Returns the bytes of the InetAddress to use.

public DnsOptEcsRecord
copy()

Redeclares io.netty5.handler.codec.dns.DnsOptPseudoRecord.copy.

Returns a copy of this record object.
public int
scopePrefixLength()

Returns the leftmost number of significant bits of ADDRESS that the response covers.

public int
sourcePrefixLength()

Returns the leftmost number of significant bits of ADDRESS to be used for the lookup.

Inherited from io.netty5.handler.codec.dns.DnsOptPseudoRecord:
extendedRcodeflagsversion

Method Detail

addressback to summary
public byte[] address()

Returns the bytes of the InetAddress to use.

copyback to summary
public DnsOptEcsRecord copy()

Redeclares io.netty5.handler.codec.dns.DnsOptPseudoRecord.copy.

Doc from io.netty5.handler.codec.dns.DnsRecord.copy.

Returns a copy of this record object. Immutable record objects may return themselves.

Annotations
@Override
scopePrefixLengthback to summary
public int scopePrefixLength()

Returns the leftmost number of significant bits of ADDRESS that the response covers. In queries, it MUST be 0.

sourcePrefixLengthback to summary
public int sourcePrefixLength()

Returns the leftmost number of significant bits of ADDRESS to be used for the lookup.