dns-hijacking

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i dns-hijacking

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • ngot