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

Usage in Deno

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

Parameters

hostname: string

Return Type

Promise<string[]>