Skip to main content
promises.reverse - node__dns.d.ts - Node documentation
function promises.reverse

Usage in Deno

```typescript import { promises } from "node:node__dns.d.ts"; ```
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`](https://nodejs.org/docs/latest-v20.x/api/errors.html#class-error) object, where `err.code` is one of the [DNS error codes](https://nodejs.org/docs/latest-v20.x/api/dns.html#error-codes).

Parameters

ip: string

Return Type

Promise<string[]>