1.0.1 • Published 8 years ago

dns-hijacking v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

dns-hijacking

Node.js DNS hijacking tool.

NPM version build status Test coverage David deps Known Vulnerabilities npm download

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.

License

MIT

1.0.1

8 years ago

1.0.0-beta.2

8 years ago

1.0.0-beta.1

8 years ago

1.0.0

8 years ago

1.0.0-beta.0

8 years ago