@yoda/httpdns

A wapper of httpdns.

Methods

(inner) syncService(sn, device, timeoutopt) → {boolean}

start httpdns resolve.

Parameters:
Name Type Attributes Description
sn string
device string
timeout number <optional>
Returns:
Type:
boolean

true: start resoleve httpdns from GSLB

(inner) resolve(hostname) → {string}

get ip addr by hostname.

Parameters:
Name Type Description
hostname string
Returns:
Type:
string

get ip addr