Skip to main content
resolveSoa - dns/promises - Node documentation
function resolveSoa

Usage in Deno

import { resolveSoa } from "node:dns/promises";
resolveSoa(hostname: string): Promise<SoaRecord>

Uses the DNS protocol to resolve a start of authority record (SOA record) for the hostname. On success, the Promise is resolved with an object with the following properties:

  • nsname
  • hostmaster
  • serial
  • refresh
  • retry
  • expire
  • minttl
{
  nsname: 'ns.example.com',
  hostmaster: 'root.example.com',
  serial: 2013101809,
  refresh: 10000,
  retry: 2400,
  expire: 604800,
  minttl: 3600
}

Parameters

hostname: string

Return Type

Promise<SoaRecord>
Back to top