org.xbill.DNS
Class OPTRecord
java.lang.Object
|
+--org.xbill.DNS.Record
|
+--org.xbill.DNS.OPTRecord
- public class OPTRecord
- extends Record
Options - describes Extended DNS (EDNS) properties of a Message.
No specific options are defined other than those specified in the
header. An OPT should be generated by Resolver.
EDNS is a method to extend the DNS protocol while providing backwards
compatibility and not significantly changing the protocol. This
implementation of EDNS is mostly complete at level 0.
- See Also:
Message,
Resolver
|
Constructor Summary |
OPTRecord(short payloadSize,
byte xrcode,
byte version)
Creates an OPT Record with no data. |
| Methods inherited from class org.xbill.DNS.Record |
equals,
fromString,
fromWire,
getDClass,
getName,
getRRsetType,
getTTL,
getType,
getWireLength,
hashCode,
newRecord,
newRecord,
newRecord,
toWire,
toWireCanonical,
withName |
OPTRecord
public OPTRecord(short payloadSize,
byte xrcode,
byte version)
- Creates an OPT Record with no data. This is normally called by
SimpleResolver, but can also be called by a server.
toString
public String toString()
- Converts to a String
- Overrides:
- toString in class Record
getPayloadSize
public short getPayloadSize()
- Returns the maximum allowed payload size.
getExtendedRcode
public short getExtendedRcode()
- Returns the extended Rcode
- See Also:
Rcode
getVersion
public short getVersion()
- Returns the highest supported EDNS version