UNPKG

diggy

Version:

Multi-backend DNS resolver for Node.js/Browser — supports dig, DNS over HTTPS, and native Node.js DNS.

33 lines (32 loc) 1.48 kB
/** * Represents the type of DNS records that can be queried. * * @enum {string} * @property {string} A - IPv4 address record. * @property {string} AAAA - IPv6 address record. * @property {string} CAA - Certification Authority Authorization record. * @property {string} CNAME - Canonical Name record, used for aliasing one domain to another. * @property {string} NAPTR - Naming Authority Pointer record, used for service discovery. * @property {string} MX - Mail Exchange record, used for email routing. * @property {string} NS - Name Server record, indicating the authoritative DNS servers for a domain. * @property {string} PTR - Pointer record, used for reverse DNS lookups. * @property {string} SOA - Start of Authority record, providing information about the DNS zone. * @property {string} SRV - Service record, used to define the location of services. * @property {string} TXT - Text record, used for arbitrary text data, often for verification purposes. * * @group DNS Records */ export var DNSRecordType; (function (DNSRecordType) { DNSRecordType["A"] = "A"; DNSRecordType["AAAA"] = "AAAA"; DNSRecordType["CAA"] = "CAA"; DNSRecordType["CNAME"] = "CNAME"; DNSRecordType["NAPTR"] = "NAPTR"; DNSRecordType["MX"] = "MX"; DNSRecordType["NS"] = "NS"; DNSRecordType["PTR"] = "PTR"; DNSRecordType["SOA"] = "SOA"; DNSRecordType["SRV"] = "SRV"; DNSRecordType["TXT"] = "TXT"; })(DNSRecordType || (DNSRecordType = {}));