instant-dns
Version:
No need to wait for DNS Propagation, now verify as soon as you update records
51 lines (29 loc) • 1.06 kB
Markdown
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
```js
var dns = require('instant-dns')()
dns.resolveIp4('example.com').then(ip4 => {
console.log(ip4); // ["93.184.216.34"]
});
```
The module exposes an object with different function which can be called:
```js
var dns = require('instant-dns');
```
Takes a string and returns an array of IPv4 addresses associated with the supplied domain if any.
Takes a string and returns an array of CNAME Records associated with the supplied domain if any.
Takes a string and returns an array of MX Records associated with the supplied domain if any.
Takes a string and returns an array of TXT Records associated with the supplied domain if any.
MIT