com.lavantech.net.dns
Class ARecord

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

public class ARecord
extends ResourceRecord

ARecord represents all information in a DNS A Record.


Constructor Summary
ARecord(java.lang.String rname, int rtype, int rclass, long ttl, java.net.InetAddress ip)
          Creates a ARecord with all the required information.
 
Method Summary
 java.net.InetAddress getInetAddress()
          Returns the IP Address
 java.lang.String toString()
          Returns the string representation of the 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

ARecord

public ARecord(java.lang.String rname,
               int rtype,
               int rclass,
               long ttl,
               java.net.InetAddress ip)
Creates a ARecord 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.
ip - IP Address.
Method Detail

getInetAddress

public java.net.InetAddress getInetAddress()
Returns the IP Address


toString

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

Overrides:
toString in class ResourceRecord