org.xbill.DNS
Class PTRRecord

java.lang.Object
  extended by org.xbill.DNS.Record
      extended by 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

Field Summary
protected  Name singleName
           
 
Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type
 
Constructor Summary
PTRRecord(Name name, int dclass, long ttl, Name target)
          Creates a new PTR Record with the given data
 
Method Summary
protected  Name getSingleName()
           
 Name getTarget()
          Gets the target of the PTR Record
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

singleName

protected Name singleName
Constructor Detail

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
Method Detail

getTarget

public Name getTarget()
Gets the target of the PTR Record


getSingleName

protected Name getSingleName()