org.xbill.DNS
Class PTRRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.PTRRecord
- All Implemented Interfaces:
- Cloneable, Comparable
public class PTRRecord
- extends Record
Pointer Record - maps a domain name representing an Internet Address to
a hostname.
- Author:
- Brian Wellington
Constructor Summary |
PTRRecord(Name name,
int dclass,
long ttl,
Name target)
Creates a new PTR Record with the given data |
Methods inherited from class org.xbill.DNS.Record |
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName |
singleName
protected Name singleName
PTRRecord
public PTRRecord(Name name,
int dclass,
long ttl,
Name target)
- Creates a new PTR Record with the given data
- Parameters:
target
- The name of the machine with this address
getTarget
public Name getTarget()
- Gets the target of the PTR Record
getSingleName
protected Name getSingleName()