dns API

Asynchronous DNS API

Permissions

dns

Note

The permission dns is required to use messenger.dns.*.

Functions

resolve(hostname, [flags])

Resolves a hostname to a DNS record.

Parameters

hostname

(string)

[flags]

(ResolveFlags, optional)

Required permissions

  • dns

Types

DNSRecord

An object encapsulating a DNS Record.

object

addresses

(array of string)

isTRR

(string)

Record retreived with TRR.

[canonicalName]

(string, optional)

The canonical hostname for this record. this value is empty if the record was not fetched with the ‘canonical_name’ flag.

ResolveFlags

array of string

Supported values:

allow_name_collisions

bypass_cache

canonical_name

disable_ipv4

disable_ipv6

disable_trr

offline

priority_low

priority_medium

speculate