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 addresslong
Returns the time until a secondary expires a zonegetHost()
Returns the primary name serverlong
Returns the minimum TTL for records in the zonelong
Returns the zone refresh intervallong
getRetry()
Returns the zone retry intervallong
Returns the zone's serial numberprotected void
rdataFromString
(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected void
rrFromWire
(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected String
Convert to a Stringprotected void
rrToWire
(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:Record
Converts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWire
in classRecord
- Throws:
IOException
-
rdataFromString
Description copied from class:Record
Converts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromString
in classRecord
- Throws:
IOException
-
rrToString
Convert to a String- Specified by:
rrToString
in 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:Record
Converts the type-specific RR to wire format - must be overridden.
-