M
dns.resolveNs
History
Added in: v0.1.90
v0.1.90
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
dns.resolveNs(hostname, callback): void
Attributes
Uses the DNS protocol to resolve name server records (NS records) for the
hostname. The addresses argument passed to the callback function will
contain an array of name server records available for hostname
(e.g. ['ns1.example.com', 'ns2.example.com']).