You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

instant-dns

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instant-dns

No need to wait for DNS Propagation, now verify as soon as you update records

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

instant-dns

Instantly gets you the latest changes done on the DNS (Within few seconds). This is great for domain verification and other quick verification purposes.

Installation

npm install instant-dns --save

Usage

var dns = require('instant-dns')()

dns.resolveIp4('example.com').then(ip4 => {
  console.log(ip4); // ["93.184.216.34"]
});

API

Initialize

The module exposes an object with different function which can be called:

var dns = require('instant-dns');

dns.resolveIp4(domainName)

Takes a string and returns an array of IPv4 addresses associated with the supplied domain if any.

dns.resolveCname(domainName)

Takes a string and returns an array of CNAME Records associated with the supplied domain if any.

dns.resolveMx(domainName)

Takes a string and returns an array of MX Records associated with the supplied domain if any.

dns.resolveTxt(domainName)

Takes a string and returns an array of TXT Records associated with the supplied domain if any.

License

MIT

Keywords

dns

FAQs

Package last updated on 27 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.