dns-hijacking
v1.0.1
Published
Node.js DNS hijacking tool.
Downloads
6
Readme
dns-hijacking
Node.js DNS hijacking tool.
Installation
$ npm install dns-hijacking --save
Quick start
const DNSHijacking = require('dns-hijacking');
const hosts = { 'nodejs.org': '127.0.0.1' }; // also support IPV6. e.g: { 'nodejs.org': '2607:f8b0:4003:c18::65' }
const dNSHijacking = new DNSHijacking(hosts);
// doing logic under the hijacking
dNSHijacking.setup();
// reset the hijacking
dNSHijacking.reset();
API
DNSHijacking
- constructor(hosts)
hosts
this hijacking host config. - config
setter
custuom config the hijacking host. - setup() start hijacking.
- reset() stop hijacking.
- resetConfig() reset the hijacking host.