Interface DnsOptEcsRecord
- All Superinterfaces:
DnsOptPseudoRecord, DnsRecord
- All Known Implementing Classes:
DefaultDnsOptEcsRecord
An ECS record as defined in Client Subnet in DNS Queries.
-
Field Summary
Fields inherited from interface DnsRecord
CLASS_ANY, CLASS_CHAOS, CLASS_CSNET, CLASS_HESIOD, CLASS_IN, CLASS_NONE -
Method Summary
Modifier and TypeMethodDescriptionbyte[]address()Returns the bytes of theInetAddressto use.intReturns the leftmost number of significant bits of ADDRESS that the response covers.intReturns the leftmost number of significant bits of ADDRESS to be used for the lookup.Methods inherited from interface DnsOptPseudoRecord
extendedRcode, flags, versionMethods inherited from interface DnsRecord
dnsClass, name, timeToLive, type
-
Method Details
-
sourcePrefixLength
int sourcePrefixLength()Returns the leftmost number of significant bits of ADDRESS to be used for the lookup. -
scopePrefixLength
int scopePrefixLength()Returns the leftmost number of significant bits of ADDRESS that the response covers. In queries, it MUST be 0. -
address
byte[] address()Returns the bytes of theInetAddressto use.
-