dnsaddon
v1.0.1
Published
DNSAddon is a Node.js native addon for resolving DNS queries. This project uses native code to provide efficient DNS resolution capabilities. The addon leverages `ares` for asynchronous DNS queries.
Downloads
4
Readme
DNSAddon
DNSAddon is a Node.js native addon for resolving DNS queries. This project uses native code to provide efficient DNS resolution capabilities. The addon leverages ares
for asynchronous DNS queries.
Table of Contents
Installation
To install DNSAddon, you need to have Node.js and npm installed. You can then install the addon via npm:
npm install dnsaddon
Usage
After installing the addon, you can use it in your project as follows:
const addon = require("./build/Release/addon");
addon.resolveDNS("example.com", (results) => {
results.forEach((result) => console.log(result));
});