riaqn / china-dns Goto Github PK
View Code? Open in Web Editor NEWA DNS proxy for netizens in China
License: BSD 3-Clause "New" or "Revised" License
A DNS proxy for netizens in China
License: BSD 3-Clause "New" or "Revised" License
@riaqn 提供的第一版Release 根据README中的运行方法,
ZHINA_TCP_TIMEOUT=2000000 ./zhina-dns < china.txt
返回如下的错误
[ThreadId 1 : Main.main] Error writing log message: Prelude.read: no parse (original message: [ThreadId 1 : Main.main] zhina-dns: Prelude.read: no parse
使用本机stack编译的版本运行
stack exec zhina-dns < ~/china.txt
依旧报上述错误。
This would be three steps:
AAAA
record in the resolve
librarychina.txt
(basically I will copy from iproute
package)resolve
, so on the resolver side we have better EDNS client.Currently only one upstream server(one for each of Chinese and foreign) is supported, while some users may wish to use a dynamic resolv.conf
as upstream. We hope to address this problem.
resolv.conf
support in resolve
libraryzhina-dns
would be quite easy.Currently only TCP is used for foreign DNS. This is based on the observation that the most widely used proxies(shadowsocks) is STREAM-based(UDP is supported but is proxied via UDP, which is fucked by the QoS of many ISP, making it unusable).
However, some users may have fast and stable access to the UDP 53 port on the DNS server, which invalidates the above concern. Thus, we need to add a command-line switch to switch on foreign UDP upstream.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.