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

Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type, wireLength
 
Constructor Summary
OPTRecord(short payloadSize, byte xrcode, byte version)
          Creates an OPT Record with no data.
 
Method Summary
 short getExtendedRcode()
          Returns the extended Rcode
 short getPayloadSize()
          Returns the maximum allowed payload size.
 short getVersion()
          Returns the highest supported EDNS version
 String toString()
          Converts to a String
 
Methods inherited from class org.xbill.DNS.Record
equals, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, getWireLength, hashCode, newRecord, newRecord, newRecord, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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