API reference
Preparing search index…

Interfaces

MxRecord

Mail exchanger record.

SrvRecord

Service discovery record.

Functions

getPublicAddress

Query the public outbound address for the given address family via OpenDNS; return undefined on failure.

queryMx

Query mail exchanger records with a default 1-second timeout; return an empty array on query failure.

queryNs

Query name server records; default to system DNS and a 1-second timeout. Return an empty array on query failure.

querySrv

Query service discovery records (e.g. _service._tcp.domain); return an empty array on failure.

queryTxt

Query TXT records, each containing multiple text segments; return an empty array on failure.

resolve

Resolve IPv4/IPv6 addresses asynchronously; return undefined on failure. With no servers, use the system resolver without applying timeout. With explicit DNS servers, the default timeout is 1 second.

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0