com.lavantech.net.dns
Class CNAMERecord
java.lang.Object
com.lavantech.net.dns.ResourceRecord
com.lavantech.net.dns.CNAMERecord
- public class CNAMERecord
- extends ResourceRecord
CNAMERecord represents all information in a DNS CNAME Record.
Constructor Summary |
CNAMERecord(java.lang.String rname,
int rtype,
int rclass,
long ttl,
java.lang.String cname)
Creates a CNAMERecord with all the required information. |
Method Summary |
java.lang.String |
getCNAME()
Returns the Canonical Name |
java.lang.String |
toString()
Returns a string representation of the record. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CNAMERecord
public CNAMERecord(java.lang.String rname,
int rtype,
int rclass,
long ttl,
java.lang.String cname)
- Creates a CNAMERecord with all the required information.
- Parameters:
rname
- Record Name (Hostname)rtype
- Record Typerclass
- Record Classttl
- Time to Live, time in seconds after which the record will expire.cname
- Canonical name for the hostname
getCNAME
public java.lang.String getCNAME()
- Returns the Canonical Name
toString
public java.lang.String toString()
- Returns a string representation of the record.
- Overrides:
toString
in class ResourceRecord