diggy
Version:
Multi-backend DNS resolver for Node.js/Browser — supports dig, DNS over HTTPS, and native Node.js DNS.
32 lines (31 loc) • 1.22 kB
JavaScript
/**
* 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 const DNSRecordType = {
A: "A",
AAAA: "AAAA",
CAA: "CAA",
CNAME: "CNAME",
NAPTR: "NAPTR",
MX: "MX",
NS: "NS",
PTR: "PTR",
SOA: "SOA",
SRV: "SRV",
TXT: "TXT",
};