dnsproxy
dnsproxy copied to clipboard
防 DNS 缓存污染,兼顾查询质量与速度
看到好久不更新了,还在维护吗?
关于内存泄露问题
感谢作者的奉献,我在使用过程中发现一些内存的问题,实测如下 # 线程过多 ``` github.com/miekg/dns/server.go for srv.isStarted() { m, s, err := reader.ReadUDP(l, rtimeout) if err != nil { if !srv.isStarted() { return nil } if netErr, ok := err.(net.Error);...
看到有谷歌框架包 又看了一下dns协议 所以发问 谢谢
树莓派3B+,编译时报下面的错,老哥怎么解决呢? root@raspberrypi:/usr/src/aaa/src/github.com/ARwMq9b6/dnsproxy/cmd/dnsproxy# export GOPATH=/usr/src/aaa root@raspberrypi:/usr/src/aaa/src/github.com/ARwMq9b6/dnsproxy/cmd/dnsproxy# make env GOOS=linux GOARCH=arm go build -o target/dnsproxy # github.com/ARwMq9b6/dnsproxy ../../proxyserve.go:283: r.req.URL.Hostname undefined (type *url.URL has no field or method Hostname) ../../proxyserve.go:287: r.req.URL.Hostname undefined (type...
hello. bogon:target brite$ ls china_domain_list.txt config.toml gfw_domain_list.txt china_ip_list.txt dnsproxy bogon:target brite$ ./dnsproxy E0811 09:55:40.950978 39150 main.go:26] listen tcp :53: bind: permission denied bogon:target brite$ sudo ./dnsproxy Password: E0811 09:56:00.630759 39164...
在配置中注释掉如下段落: [proxy] #listen = ":1480" # 将要开启的本地代理服务器的绑定地址 但dnsproxy还是会随机开一个高端口做代理,而且绑定在 0.0.0.0 的公开网络接口上。如果在公开网络环境,这个端口被扫走了,并被用来作代理,就不好了。如何能让dnsproxy完全不开这个端口?
一些建议
首先,感谢作者,,好用! 建议: 1,这里有一个golang systray的开源,可以参考,做成systray,隐藏运行 command 窗口 (windows下)https://github.com/getlantern/systray 2,可以开机自动运行(windows),并能够程序异常退出后重启 3,可以在systray 上点击设置,或退出 4,可以关闭自带代理服务器,避免出现代理端口被侦测等问题。以及使用自己pac 和代理的用户,可以关掉这个功能。 5,程序运行后,可以用 netsh interface ip set dns "你的网卡接口" static 127.0.0.1 来设置本地 dns 并测试是否有效,并弹出对话框,多数小白用户都根本不懂这个,会导致不能上网或dnsproxy 根本没起作用。程序退出后,netsh …… dhcp 或者恢复原接口状态 6,可以有设置所有dns 查询走...
Windows 10 1703,用的是64位,dns.google.com走的是goproxy,崩溃报错如下: ``` Exception 0xc0000005 0x0 0xffffffffffffffff 0x7ff800c6c61f PC=0x7ff800c6c61f syscall.Syscall6(0x7ff800c4ca40, 0x4, 0x4, 0xf013b0, 0xc04253d3d0, 0xc04253d3e0, 0x0, 0x0, 0xf227bdd7b50fb70f, 0x1295e3c05cbfdf84, ...) /usr/local/go/src/runtime/syscall_windows.go:174 +0x6b syscall.CertVerifyCertificateChainPolicy(0x4, 0xf013b0, 0xc04253d3d0, 0xc04253d3e0, 0x0, 0xc0429253d8) /usr/local/go/src/syscall/zsyscall_windows.go:1208...
比如已经有查询`www.bbc.com`的请求发给梯子,dnsserver再接到`www.bbc.com`的查询就别再给梯子发请求了。否则我这儿梯子不太扛得住。