-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
stubby: truncating large answers #16347
Comments
@raidenii Just an FYI there is no active maintainer for stubby anymore currently, the version and Makefile info in openwrt-19.07 is slightly old compared to master. Interestingly, as I also use stubby I tried the same command:
I do not get a truncated answer. Edit: Actually after running the command a few times, the answer was then truncated, however the first initial DNS lookups did not do this. |
Possibly related: getdnsapi/getdns#495 |
But that's an actual error. Without EDNS a truncated UDP answer can be expected, clients are supposed to use EDNS or retry over TCP. You know, like drill tells you at the end ;) First random search result: https://dnsinstitute.com/documentation/dnssec-guide/ch03s05.html |
Ah yes, my apologies, please ignore me! |
But for the record, I don't see that issue on master:
I'm not sure if that's because a version difference, at least there's an EDNS comment.
|
I believe the version of stubby in master is 0.4.0 where as both 21.02 and 19.07 it's 0.3.0, could do a PR to backport 0.4.0 to these branches? |
I've created a PR for 0.4.0 on 21.02, given it will be the new stable soon. |
Thanks James, although I doubt this might be openwrt specific... tried on a Debian Buster host with even older stubby:
Anyway to check stubby build flags? My guess is that EDNS support is somehow broken is this build. |
OK, probably worth bumping to 0.4.0 anyway given it's the latest and has been in master for a while. EDNS issue will need further investigation by the sounds of it. |
Seems issue persist with 21.02 and Stubby 0.4:
|
@jamesmacwhite @dhewg What is the getdnsapi version of yours that stubby works as expected? The one in openwrt 21.02 repo (Stubby 0.4) is using an old version of 1.6.0, which I suppose might be related. I tried on my Arch Linux which also has Stubby 0.4 but compiled with getdnsapi 1.7.0, and does not have this issue. |
Apart from bumping stubby to 0.4.0, it's also needed to bump getdns to 1.7.0 to enjoy DNS name compression (as per https://getdnsapi.net/releases/getdns-1-7-0/) With getdns 1.7.0 we get response smaller than 512 bytes thanks to name compression, so no truncation would occur in most situations:
With previous getdns 1.6.0 getdns version:
Pull request submitted to upgrade getdns to 1.7.0: #17317 |
Confirmed working with getdns 1.7.0-1 and stubby 0.4.0. |
Maintainer: @jonathanunderwood
Environment: x86-64, OpenWrt 19.07.8
Description:
Stubby 0.3.0
Stubby on openwrt specifically appears to truncate large answers; does not happen on other Linux distros. An example:
If specifying with
-t
the answers were returned properly. However on other Linux distros (e.g., Arch), without-t
the query still went through fine.The text was updated successfully, but these errors were encountered: