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
- Tcp conn to upstream dns servers
- Cache dns query
- parallel request upstream dns servers
- 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