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
dnsdist: SpoofRaw with comma creates malformed packets #10456
Comments
Looks like we might need some form of escaping now that we handle multiple values separated by commas.. |
Just to be sure, I checked, and indeed #10063 introduces this. |
Or add support for returning tables? |
Oh, not that easy, because of the |
One possible solution would be to add a This would be a bit ugly. We could hide the ugliness with a pure Lua wrapper around the callback that converts |
I had the exact same idea. Must be a good idea then! |
I just tried to turn the return value of LuaAction from a |
I'm pondering adding Lua bindings to store a table into the |
I think that makes sense. Sounds like it would keep the interface cheap -usually-, and not terribly hard to use even for the special cases. We should include some actual full examples in the docs if we do this, I think. |
That would work fine for plain Lua. The FFI interface would need an alternative way to set this. |
Sure, we would add a setter function in the FFI interface :) |
It turns out that there is already a non-FFI way to do this via |
Could this be related? https://mailman.powerdns.com/pipermail/dnsdist/2022-December/001267.html |
Very likely, yes. |
Short description
SpoofRaw creates malformed packets when TXT records include a comma.
Environment
Master as of yesterday (b67e520) and same on 1.6.0.
Steps to reproduce
The same happens when using the FFI interface.
Expected behaviour
dig -t txt
returns a TXT record with only a comma.Actual behaviour
Other information
No other characters cause this issue:
The text was updated successfully, but these errors were encountered: