AdguardTeam / dnsproxy

Simple DNS proxy with DoH, DoT, DoQ and DNSCrypt support
Apache License 2.0
2.37k stars 246 forks source link

please add proxy (http/socks5) #62

Open xdown-dev opened 5 years ago

xdown-dev commented 5 years ago

please add proxy (http/socks5)

./dnsproxy -l 127.0.0.1 -p 53 -z -u tls://dns.google -u https://dns.adguard.com/dns-query

Changed to

./dnsproxy -l 127.0.0.1 -p 53 -z -http http://user:pass@11.11.11.2:8080 -u tls://dns.google -u https://dns.adguard.com/dns-query

./dnsproxy -l 127.0.0.1 -p 53 -z -socks5 socks5://user:pass@11.11.11.2:1080 -u tls://dns.google -u https://dns.adguard.com/dns-query

In China, it is not connected to https://dns.google, so you must use the proxy to access, please add support proxy to request access.

http://www.17ce.com/site/http/20190906_2e38c980d05211e9a6fa6ff274fada70:1.html

rampageX commented 4 years ago

Global proxy is not a good idea, I think it should be:

... -socks5 socks5://user:pass@11.11.11.2:1080 -up tls://dns.google ...

-up means next dns server will use proxy, but not old -u.

qcts33 commented 3 years ago

Another idea. Maybe like this: ... -socks5 socks5://user:pass@11.11.11.2:1080 -up socks5+tls://dns.google ... socks5+ means the server should uses proxy, and the proxy address can be specified only once.

ameshkov commented 3 years ago

Tbh, I don't understand what's wrong with global proxy.

wutongskype commented 3 years ago

表示支持,请问下现在http/socks代理添加了吗??该如何使用??

wutongskype commented 3 years ago

另一个想法。可能是这样的: ... -socks5 socks5://user:pass@11.11.11.2:1080 -up socks5+tls://dns.google ... socks5+意味着服务器应该使用代理,并且代理地址只能指定一次。

表示支持,这种模式是好的

wutongskype commented 3 years ago

请添加代理(http / socks5)

./dnsproxy -l 127.0.0.1 -p 53 -z -u tls://dns.google -u https://dns.adguard.com/dns-query

变成

./dnsproxy -l 127.0.0.1 -p 53 -z -http http://user:pass@11.11.11.2:8080 -u tls://dns.google -u https://dns.adguard.com/dns-query

./dnsproxy -l 127.0.0.1 -p 53 -z -socks5 socks5://user:pass@11.11.11.2:1080 -u tls://dns.google -u https://dns.adguard.com/dns-query

在中国,它未连接到https://dns.google,因此您必须使用代理进行访问,请添加支持代理以请求访问。

http://www.17ce.com/site/http/20190906_2e38c980d05211e9a6fa6ff274fada70:1.html

其实现在可以使用sockscap64,把DNSproxy添加到里面勉强使用. 然后使用参数--edns --edns-addr=你附近的IP,这样解析应该没多大问题.