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

Usage in Deno

import { promises } from "node:dns";
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[]>