org.xbill.DNS
Class SOARecord

java.lang.Object
  |
  +--org.xbill.DNS.Record
        |
        +--org.xbill.DNS.SOARecord

public class SOARecord
extends Record

Start of Authority - describes properties of a zone.


Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type, wireLength
 
Constructor Summary
SOARecord(Name _name, short _dclass, int _ttl, Name _host, Name _admin, int _serial, int _refresh, int _retry, int _expire, int _minimum)
          Creates an SOA Record from the given data
 
Method Summary
 Name getAdmin()
          Returns the zone administrator's address
 int getExpire()
          Returns the time until a secondary expires a zone
 Name getHost()
          Returns the primary nameserver
 int getMinimum()
          Returns the minimum TTL for records in the zone
 int getRefresh()
          Returns the zone refresh interval
 int getRetry()
          Returns the zone retry interval
 int getSerial()
          Returns the zone's serial number
 String toString()
          Convert 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

SOARecord

public SOARecord(Name _name,
                 short _dclass,
                 int _ttl,
                 Name _host,
                 Name _admin,
                 int _serial,
                 int _refresh,
                 int _retry,
                 int _expire,
                 int _minimum)
          throws IOException
Creates an SOA Record from the given data
Parameters:
host - The primary nameserver for the zone
admin - The zone administrator's address
serial - The zone's serial number
refresh - The amount of time until a secondary checks for a new serial number
retry - The amount of time between a secondary's checks for a new serial number
expire - The amount of time until a secondary expires a zone
minimum - The minimum TTL for records in the zone
Method Detail

toString

public String toString()
Convert to a String
Overrides:
toString in class Record

getHost

public Name getHost()
Returns the primary nameserver

getAdmin

public Name getAdmin()
Returns the zone administrator's address

getSerial

public int getSerial()
Returns the zone's serial number

getRefresh

public int getRefresh()
Returns the zone refresh interval

getRetry

public int getRetry()
Returns the zone retry interval

getExpire

public int getExpire()
Returns the time until a secondary expires a zone

getMinimum

public int getMinimum()
Returns the minimum TTL for records in the zone