Skip to main content
function reverse
reverse(
ip: string,
callback: (
err: ErrnoException | null,
hostnames: string[],
) => void
,
): void
Deprecated

Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an array of host names.

On error, err is an Error object, where err.code is one of the DNS error codes.

Parameters

ip: string
callback: (
err: ErrnoException | null,
hostnames: string[],
) => void

Return Type

void
Back to top