The ResourceRecord class is the base class for Domain Name System (DNS) resource record classes.

DNS resource records are returned by a DNSResolver object as a result of a DNS lookup.



The query string used to look up this resource record.


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.