@glowsrc/dns
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

@glowsrc/dns

A simple dns resolver which wraps node:dns

usage

import { resolve } from "@glowsrc/dns";
resolve("google.com").then(console.log)
// {
//  ip4: [ '142.250.206.238' ],
//  ip6: [ '2404:6800:400a:80e::200e' ],
//  cname: []
// }

options

resolve("google.com", { dns:[ "1.1.1.1", "8.8.8.8" ] })

You can set your own dns to use(In [string])

Readme

Keywords

Package Sidebar

Install

npm i @glowsrc/dns

Weekly Downloads

6

Version

0.1.8

License

MIT

Unpacked Size

7.69 kB

Total Files

12

Last publish

Collaborators

  • chasyumens
  • googlefan