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

Usage in Deno

```typescript import { promises } from "node:node__dns.d.ts"; ```
resolveNs(hostname: string): Promise<string[]>
Uses the DNS protocol to resolve name server records (`NS` records) for the `hostname`. On success, the `Promise` is resolved with an array of name server records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`).

Parameters

hostname: string

Return Type

Promise<string[]>