com.lavantech.net.dns
Class SOARecord

java.lang.Object
  extended bycom.lavantech.net.dns.ResourceRecord
      extended bycom.lavantech.net.dns.SOARecord

public class SOARecord
extends ResourceRecord

SOARecord represents a DNS SOA Record.


Constructor Summary
SOARecord(java.lang.String rname, int rtype, int rclass, long ttl, java.lang.String pNS, java.lang.String adminMB, long serial, long refresh, long retry, long expiry, long minTTL)
          Creates a SOARecord with all the required information.
 
Method Summary
 java.lang.String getAdminMailBox()
          Returns the Domain Admin Mailbox.
 long getExpirationLimit()
          Returns the expiry internal in number of seconds.
 long getMinTTL()
          Returns the minimum TTL in number of seconds.
 java.lang.String getNameServer()
          Returns the Name Server.
 long getRefreshInterval()
          Returns the refresh internal in number of seconds.
 long getRetryInterval()
          Returns the retry internal in number of seconds.
 long getSerialNumber()
          Returns the Serial Number.
 java.lang.String toString()
          Returns the string representation of the SOA Record.
 
Methods inherited from class com.lavantech.net.dns.ResourceRecord
getResourceClass, getResourceName, getResourceType, getTTL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SOARecord

public SOARecord(java.lang.String rname,
                 int rtype,
                 int rclass,
                 long ttl,
                 java.lang.String pNS,
                 java.lang.String adminMB,
                 long serial,
                 long refresh,
                 long retry,
                 long expiry,
                 long minTTL)
Creates a SOARecord with all the required information.

Parameters:
rname - Record Name (Hostname)
rtype - Record Type
rclass - Record Class
ttl - Time to Live, time in seconds after which the record will expire.
pNS - Primary Name Server for the domain.
adminMB - Administrator mailbox for the domain.
serial - Serial number for the records of the domain. This is more like a version number. Whenever any record for the domain is changed, this serial number is changed.
refresh - Refresh Interval in seconds. How often the records are refreshed.
retry - Retry Interval.
expiry - Expiry Interval.
minTTL - Minimum TTL.
Method Detail

getNameServer

public java.lang.String getNameServer()
Returns the Name Server.


getAdminMailBox

public java.lang.String getAdminMailBox()
Returns the Domain Admin Mailbox.


getSerialNumber

public long getSerialNumber()
Returns the Serial Number.


getRefreshInterval

public long getRefreshInterval()
Returns the refresh internal in number of seconds.


getRetryInterval

public long getRetryInterval()
Returns the retry internal in number of seconds.


getExpirationLimit

public long getExpirationLimit()
Returns the expiry internal in number of seconds.


getMinTTL

public long getMinTTL()
Returns the minimum TTL in number of seconds.


toString

public java.lang.String toString()
Returns the string representation of the SOA Record.

Overrides:
toString in class ResourceRecord