M
dns.resolve6
History
Added in: v0.1.16
v0.1.16
Introduced in: v0.10.0
v0.10.0
Passing an invalid callback to the
callback argument now throws ERR_INVALID_ARG_TYPE instead of ERR_INVALID_CALLBACK.v18.0.0
This method now supports passing
options, specifically options.ttl.v7.2.0
dns.resolve6(hostname, options?, callback): void
Attributes
Uses the DNS protocol to resolve IPv6 addresses (AAAA records) for the
hostname. The addresses argument passed to the callback function
will contain an array of IPv6 addresses.