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

Usage in Deno

```typescript import { resolvePtr } from "node:node__dns--promises.d.ts"; ```
resolvePtr(hostname: string): Promise<string[]>
Uses the DNS protocol to resolve pointer records (`PTR` records) for the `hostname`. On success, the `Promise` is resolved with an array of strings containing the reply records.

Parameters

hostname: string

Return Type

Promise<string[]>