-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请教:是否支持单纯的dns转发 #185
Comments
当然可以,例如这个参数,将启动一个类似 dns2tcp 的转发器 (监听 udp dns,转发至 tcp dns):
精髓就在于 |
非常感谢老大的回复。 |
@zfl9 我在openwrt中测试用chinadns-ng -b 127.0.0.1 -l 5454@udp -c 'tcp://223.5.5.5' -d chn这样测试,发现每次启动进程后大概30秒左右5454端口可以解析域名,过后就无法解析了,排除5454端口冲突。 |
被 223.5.5.5 限流了?同时期使用 |
dig qq.com @223.5.5.5 +tcp 是通的,而 ;; communications error to 127.0.0.1#5454: timed out |
verbose 日志发一下。 |
观察了一个上午,感觉像是处理大量dns访问时出现的,我运行:
|
手动编译一个 no-lto 的版本试试 zig build -Dlto=false -Dwolfssl -Dtarget=x86_64-linux-musl -Dcpu=x86_64 另外,换其他tls上游是否正常,或者同时使用两个上游: -c tls://223.5.5.5 -c tls://1.12.12.12 也许和 pipeline 查询有关(在单个 tcp/tls 连接中执行多个查询),因为你这个看起来像是 tcp/tls 连接被限速了。也许应该给单个 tcp/tls 连接设置一个限额,比如设置为 10,表示单个连接最多服务 10 次 dns 查询,超过这个限额,就关闭此连接,下次有新的 dns 查询时,再与服务器建立一个新的连接。如果限额为 1,则行为类似 dns2tcp,每个查询都与服务器建立单独的 tcp/tls 连接。 |
感谢,经过测试,确实受到了dns限速,我改用运营商的dns和字节的dns后可以正常查询。 |
来 #189 这里讨论吧。 |
如果不需要域名分流等功能的话,是否可以类似dns2tcp这样只设置bind-addr、bind-port、china-dns这几个参数,直接将本地的dns udp请求转发到上游的tcp或dot上?谢谢。
The text was updated successfully, but these errors were encountered: