UNPKG

@xyz/whois

Version:

A powerful TypeScript/JavaScript tool for comprehensive domain analysis, featuring detailed WHOIS data with registration dates, registrars, and domain status. Offers SSL certificate extraction (with PEM support), DNS records, and server details. Includes

19 lines (18 loc) 888 B
/** * Queries a WHOIS server for domain information * @param domain The domain to query * @param server The WHOIS server to query * @param timeout Timeout in milliseconds * @param debug Whether to enable debug logging * @returns Promise resolving to the raw WHOIS response */ export declare function queryWhoisServer(domain: string, server: string, timeout?: number, debug?: boolean): Promise<string>; /** * Follows WHOIS server referrals to get the most complete data * @param domain The domain to query * @param initialServer The initial WHOIS server to query * @param maxReferrals Maximum number of referrals to follow * @param debug Whether to enable debug logging * @returns Promise resolving to the combined WHOIS response */ export declare function followWhoisReferrals(domain: string, initialServer: string, maxReferrals?: number, debug?: boolean): Promise<string>;