Package org.xbill.DNS
Class SOARecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.SOARecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
Start of Authority - describes properties of a zone.
- Author:
- Brian Wellington
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdmin()Returns the zone administrator's addresslongReturns the time until a secondary expires a zonegetHost()Returns the primary name serverlongReturns the minimum TTL for records in the zonelongReturns the zone refresh intervallonggetRetry()Returns the zone retry intervallongReturns the zone's serial numberprotected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConvert to a Stringprotected voidrrToWire(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
SOARecord
public SOARecord(Name name, int dclass, long ttl, Name host, Name admin, long serial, long refresh, long retry, long expire, long minimum) Creates an SOA Record from the given data- Parameters:
host- The primary name server for the zoneadmin- The zone administrator's addressserial- The zone's serial numberrefresh- The amount of time until a secondary checks for a new serial numberretry- The amount of time between a secondary's checks for a new serial numberexpire- The amount of time until a secondary expires a zoneminimum- The minimum TTL for records in the zone
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin classRecord- Throws:
IOException
-
rrToString
Convert to a String- Specified by:
rrToStringin classRecord
-
getHost
Returns the primary name server -
getAdmin
Returns the zone administrator's address -
getSerial
public long getSerial()Returns the zone's serial number -
getRefresh
public long getRefresh()Returns the zone refresh interval -
getRetry
public long getRetry()Returns the zone retry interval -
getExpire
public long getExpire()Returns the time until a secondary expires a zone -
getMinimum
public long getMinimum()Returns the minimum TTL for records in the zone -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-