com.lavantech.net.dns
Class PTRRecord
java.lang.Object
com.lavantech.net.dns.ResourceRecord
com.lavantech.net.dns.PTRRecord
- public class PTRRecord
- extends ResourceRecord
PTRRecord class represents all information in a DNS PTR Record.
Constructor Summary |
PTRRecord(java.lang.String rname,
int rtype,
int rclass,
long ttl,
java.lang.String ptrName)
Creates a PTRRecord with all the required information. |
Method Summary |
java.lang.String |
getHostName()
Returns the hostname |
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 |
PTRRecord
public PTRRecord(java.lang.String rname,
int rtype,
int rclass,
long ttl,
java.lang.String ptrName)
- Creates a PTRRecord with all the required information.
- Parameters:
rname
- Record Namertype
- Record Typerclass
- Record Classttl
- Time to Live, time in seconds after which the record will expire.ptrName
- Hostname
getHostName
public java.lang.String getHostName()
- Returns the hostname
toString
public java.lang.String toString()
- Returns a string representation of the record.
- Overrides:
toString
in class ResourceRecord