The dns module contains functions belonging to two different categories: 1) Functions that use the underlying operating system facilities to perform name resolution, and that do not necessarily perform any network communication.
The dns module contains functions belonging to two different categories: 1) Functions that use the underlying operating system facilities to perform name resolution, and that do not necessarily perform any network communication. This category contains only one function: dns.lookup(). Developers looking to perform name resolution in the same way that other applications on the same operating system behave should use dns.lookup().
https://nodejs.org/api/dns.html
DNS Extensions
DNS Options
DNS Options
Represents an MX record.
Represents an MX record.
{ exchange: 'bing-com.mail.protection.outlook.com', priority: 10 }
Represents a DNS NAPTR record.
Represents a DNS NAPTR record.
{ flags: "s", service: "SIP+D2U", regexp: "", replacement: "_sip._udp.example.com", order: 30, preference: 100 }
Represents a DNS SOA record.
Represents a DNS SOA record.
{ nsname: 'ns.example.com', hostmaster: 'root.example.com', serial: 2013101809, refresh: 10000, retry: 2400, expire: 604800, minttl: 3600 }
Represents a DNS SRV record.
Represents a DNS SRV record.
{ priority: 10, weight: 5, port: 21223, name: 'service.example.com' }
DNS Singleton
DNS Singleton
dns package object