com.lavantech.net.dns
Class NSRecord

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

public class NSRecord
extends ResourceRecord

NSRecord represents all information in a DNS NS Record.


Constructor Summary
NSRecord(java.lang.String rname, int rtype, int rclass, long ttl, java.lang.String nsName)
          Creates a NSRecord with all the required information.
 
Method Summary
 java.lang.String getNameServer()
          Returns the name server
 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

NSRecord

public NSRecord(java.lang.String rname,
                int rtype,
                int rclass,
                long ttl,
                java.lang.String nsName)
Creates a NSRecord with all the required information.

Parameters:
rname - Record Name (domain name)
rtype - Record Type
rclass - Record Class
ttl - Time to Live, time in seconds after which the record will expire.
nsName - Name Server for the domain.
Method Detail

getNameServer

public java.lang.String getNameServer()
Returns the name server


toString

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

Overrides:
toString in class ResourceRecord