Skip to content

isofew/sinodns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

node.js version of ChinaDNS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published