Total Pageviews

Sunday 21 July 2019

利用dnscache解决dns污染问题

This is a DNS Cache server for local pc. For MacOSX, Linux User. Not tested for Windows
You need golang 1.8+ to compile dnscache, Tested for golang 1.8.3

Features

  1. Tcp conn to upstream dns servers
  2. Cache dns query
  3. parallel request upstream dns servers
  4. easy to use (at least on linux/macosx)

Install

Fast

cd $GOPATH
go get -u -v github.com/netroby/dnscache
Then dnscache will be your go/bin dir. like $HOME/go/bin/dnscache
You now can run:
$HOME/go/bin/dnscache
from https://github.com/netroby/dnscache
------------
实际使用例子:
sudo wg-quick up wg0 
sudo networksetup -setdnsservers "Wi-Fi" 127.0.0.1
sudo $HOME/go/bin/dnscache
看看能用多久。

No comments:

Post a Comment