Skip to main content
reverse - dns/promises - Node documentation
function reverse

Usage in Deno

import { reverse } from "node:dns/promises";
reverse(ip: string): Promise<string[]>

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

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

Parameters

ip: string

Return Type

Promise<string[]>
Back to top