Skip to content
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: buffer size too small #13

Open
gary0121 opened this issue Dec 13, 2023 · 3 comments
Open

dns: buffer size too small #13

gary0121 opened this issue Dec 13, 2023 · 3 comments

Comments

@gary0121
Copy link

gary0121 commented Dec 13, 2023

I got cleardns error:
[error] handling tcp: handling tcp request: talking to dns upstream: exchanging with 127.0.0.1:5353 over udp: dns: buffer size too small

Where can I modify this configuration?

@gary0121 gary0121 changed the title 解析失败 dns: buffer size too small Dec 13, 2023
@dnomd343
Copy link
Owner

看起来是AdGuardHome向overture上游查询时,缓冲区空间不足导致的错误,AdguardTeam/AdGuardHome#1777 报告了类似的问题,您可以使用 sysctl net.core.rmem_max 命令查看当前系统socket缓冲区大小,并尝试参考 UDP-Buffer-Sizes 增加该数值。

@gary0121
Copy link
Author

看起来是AdGuardHome向overture上游查询时,缓冲区空间不足导致的错误,AdguardTeam/AdGuardHome#1777 报告了类似的问题,您可以使用 sysctl net.core.rmem_max 命令查看当前系统socket缓冲区大小,并尝试参考 UDP-Buffer-Sizes 增加该数值。

[root@dns-server cleardns]# sysctl net.core.rmem_max
net.core.rmem_max = 33554432

[root@dns-server cleardns]# sysctl net.core.wmem_max
net.core.wmem_max = 33554432

由16777216改为 33554432,还是报错

@dnomd343
Copy link
Owner

dnomd343 commented Jan 1, 2024

这边和AdGuardHome项目反映比较合适,进程是以子进程形式存在的,ClearDNS这边没有更改它的代码实现,您这边可以临时把DNS上游改成tcp连接绕开这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants