The PTRRecord class represents a Domain Name System (DNS) PTR resource record containing a canonical domain name.

PTR resource records are returned by a DNSResolver object as a result of a DNS lookup of an IP address.

Constructor

new()

Creates a PTR resource record.

PTR records are obtained from a DNS lookup using the DNSResolver class. Application code should not create PTRRecord objects.

Variables

ptrdName:String

The canonical domain name assigned to the query IP address.

Inherited Variables

Defined by ResourceRecord

name:String

The query string used to look up this resource record.

ttl:Int

The resource time-to-live (ttl) value.

The length of time (in seconds) that the resource record is valid. Records should not be cached for longer than this value. A ttl of zero means the record is volatile and must not be cached. A ttl less than zero means that the resource record is not valid.

Inherited Methods