diggy
Version:
Multi-backend DNS resolver for Node.js/Browser — supports dig, DNS over HTTPS, and native Node.js DNS.
13 lines (12 loc) • 668 B
TypeScript
import type { DNSResolver } from "../resolvers/DNSResolver.js";
import { type AnyDNSRecord } from "../types.js";
/**
* Resolves all DNS records for a given host using the specified resolver.
* This function attempts to resolve all types of DNS records defined in `DNSRecordType`.
* If a record type cannot be resolved, it will be skipped.
*
* @param host - The domain or host for which to resolve DNS records (e.g., "example.com").
* @param resolver - The DNS resolver function to use. It should accept a host and a DNS record type,
* @group Utilities
*/
export declare function resolveAllRecords(host: string, resolver: DNSResolver): Promise<AnyDNSRecord[]>;