Constructor
new AddressResolver(options)
Creates a new instance of the resolver.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
Methods
getIp()
Returns resolved ips in a round-robin fashion.
(async) init()
Resolves the addresses for the host name.
(async) refresh()
Tries to resolve the addresses for the host name.