dns-client

0.0.5 • Public • Published

DNS Client

This project is an implementation of a DNS record lookup service using Node.js.

Install

npm install dns-client

Usage

let client = new Client();
client.setUpServers(_=>{
    client.on("result",function(data){
        console.log(data)//{answers:[],'name-servers':[],'addtional-records':[]}
        client.close();
    });
    client.resolve("google.com","A");
})

Readme

Keywords

Package Sidebar

Install

npm i dns-client

Weekly Downloads

0

Version

0.0.5

License

GPL-3.0-or-later

Unpacked Size

33.9 kB

Total Files

11

Last publish

Collaborators

  • shivam_g10