Function signature
- Queries multiple record types (NS, SOA, A, AAAA, MX, TXT)
- Checks common subdomains from a built-in list
- Discovers subdomains from DNS records (MX, CNAME, SPF in TXT)
- Detects and groups wildcard records
Parameters
Valid domain name, without subdomain or protocol. For example:
example.com, not https://www.example.comOptions for DNS resolver, extra subdomains to check, etc.
Which DNS resolver to use for DNS lookup. Options:
cloudflare-dnsgoogle-dnsnode-dnsnode-digdeno-dns
Check for common subdomains from the built-in list. Enabled by default.
List of extra subdomains to check for beyond the built-in common subdomains list.
Returns
A promise that resolves to an array of all
DnsRecord objects discovered for the domain, with wildcard records detected and grouped.Each DnsRecord contains:name(string): Fully qualified domain nametype(DnsRecordType): Record typettl(number): Time to live in secondsdata(string): Record data