dns.reverse(ip, callback)
-
ip
<string> -
callback
<Function>-
err
<Error> -
hostnames
<string[]>
-
执行反向域名系统查询,将 IPv4 或 IPv6 地址解析为主机名数组。
¥Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of host names.
出错时,err
是一个 Error
对象,其中 err.code
是 DNS 错误代码 之一。
¥On error, err
is an Error
object, where err.code
is
one of the DNS error codes.