@stacksjs/dnsx
Version:
A command-line & library DNS client. Like dig & dog, but for TypeScript.
28 lines (27 loc) • 684 B
TypeScript
import type { DnsOptions, DnsResponse } from './types';
/**
* A powerful DNS client that supports multiple transport protocols and advanced DNS features.
*
* Features:
* - Multiple transport protocols (UDP, TCP, TLS, HTTPS)
* - EDNS support
* - Protocol tweaks
* - Automatic nameserver resolution
* - Retry mechanism with exponential backoff
* - Comprehensive error handling
*
* @example
* ```ts
* const client = new DnsClient({
* domains: ['example.com'],
* type: 'A',
* nameserver: '1.1.1.1'
* })
*
* const responses = await client.query()
* ```
*/
export declare class DnsClient {
constructor(options: DnsOptions);
query(): Promise<DnsResponse[]>;
}