New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sinodns

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinodns

node.js version of ChinaDNS

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SinoDNS

node.js version of ChinaDNS

Installation

First, set up a tunnel / VPN and route 8.8.8.8 via the virtual interface so that your connection with 8.8.8.8 is private and not poisoned. Then,

npm -g install sinodns

Usage

sinodns [port] [address]

The command above will run a dns relay listening on address:port, forwarding requests to 180.76.76.76(Baidu DNS) and 8.8.8.8(Google DNS).

By default, the address is 127.0.0.1:53

SinoDNS works better with cache. (e.g. dnsmasq)

Procedure

Here's how it works:

  • Forward requests to both upstream server (Baidu's and Google's)
  • if there's no A record answered, use Baidu's answer
  • else if A record's address is in China, use Baidu's answer
  • else use Google's answer

Keywords

FAQs

Package last updated on 25 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc