Skip to content

AlexEndris/node-evil-dns-promises

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evil DNS Promises

Override the IP address returned for one or more domains.

Note: This module modifies the core DNS library's lookup function. Including dns.promises.

Credits

Credits to evil-dns by James Hight for the original module.

Installation

npm install evil-dns-promises

Usage

var evilDns = require('evil-dns-promises');

// String match
evilDns.add('foo.com', '1.2.3.4');
// String with wild cards
evilDns.add('*foo.*', '1.2.3.4');
// RegExp match
evilDns.add(/^foo\.bar\..*$/i, '1.2.3.4');

// Remove domain entry
evilDns.remove('*foo.*','1.2.3.4');

// Remove domain by matching the RegExp source attributes
// When no ip is passed any entry matching the domain will be removed
evilDns.remove(/^foo\.bar\..*$/i);

// Remove all domain entries
evilDns.clear();

About

Override the IP address returned for one or more domains.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%