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

Usage in Deno

```typescript import { resolveSoa } from "node:node__dns.d.ts"; ```
resolveSoa(
hostname: string,
callback: (
err: ErrnoException | null,
address: SoaRecord,
) => void
,
): void
> [!WARNING] Deno compatibility > The `ttl` option is not supported. Uses the DNS protocol to resolve a start of authority record (`SOA` record) for the `hostname`. The `address` argument passed to the `callback` function will be an object with the following properties: * `nsname` * `hostmaster` * `serial` * `refresh` * `retry` * `expire` * `minttl` ```js { nsname: 'ns.example.com', hostmaster: 'root.example.com', serial: 2013101809, refresh: 10000, retry: 2400, expire: 604800, minttl: 3600 } ```

Parameters

hostname: string
callback: (
err: ErrnoException | null,
address: SoaRecord,
) => void

Return Type

void