@layered/dns-records
Version:
Discover publicly available DNS Records for a domain
11 lines (10 loc) • 444 B
TypeScript
import { DnsRecord } from './index.js';
/**
* Get DNS records using the `dig` command
*
* @param names The name(s) to query
* @param types The DNS type(s) to query
* @param server The DNS server to query. If not provided, the default DNS server on the network will be used
* @returns The DNS records
*/
export declare function getDnsRecordsDig(names: string | string[], types?: string | string[], server?: string): Promise<DnsRecord[]>;