evil-dns

0.2.0 • Public • Published

Evil DNS

Override the IP address returned for one or more domains.

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

Installation

npm install evil-dns

Usage

var evilDns = require('evil-dns');
 
// 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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    1,665
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.0
    1,665
  • 0.1.0
    1
  • 0.0.2
    0
  • 0.0.1
    1

Package Sidebar

Install

npm i evil-dns

Weekly Downloads

1,667

Version

0.2.0

License

none

Last publish

Collaborators

  • jmerrick