The ARecord class represents a Domain Name System (DNS) A resource record containing an IPv4 address.

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

Constructor

new()

Creates an A resource record.

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

Variables

address:String

The IPv4 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