-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Warning: Message parser reports malformed message packet. #8
Comments
I'm seeing the exact same issue. I'm a bit down the rabbit hole from minikube ingress-dns to My issue arises when the systemd-resolverd stub-resolver performs a query. Using |
This happens when dns2 tries to answer to a request it did not understand (mostly OPT RR). The solution in my case was to filter out unsupported types from prepared responses. // create a filter of supported data types
const SUPPORTED_TYPES = new Set(
Object.keys(dns.Packet.TYPE)
.map((key) => dns.Packet.TYPE[key])
.filter((val) => typeof val === "number")
);
const server = dns.createServer(function (request, send) {
// filter out unsupported requests (eg. EDNS)
if (request.additionals && request.additionals.length) {
request.additionals = request.additionals.filter((additional) =>
SUPPORTED_TYPES.has(additional.type)
);
}
.... |
Simply clears out the
|
Thank you. response.additionals = []; removed the error message about unknown encoder, but the "unknown parser type: undefined(41) is still there. |
That's because the encoder for that packet type doesn't exist in dns2. |
Hi: dwuser@darwin:~$ dig @localhost -p 5333 google.com aaaa ; <<>> DiG 9.16.1-Ubuntu <<>> @localhost -p 5333 google.com aaaa ;; QUESTION SECTION: ;; Query time: 8 msec This is the code I m using: const dns2 = require('dns2'); server.on('request', (request, response, rinfo) => { Thank you |
Hello,
When i execute : "dig wbc.weble.ch +trace"
I've this result :
Here the response object :
And in console I've:
Is there a link between this error and the warning ;; Warning: Message parser reports malformed message packet. ?
Is there something wrong ?
The text was updated successfully, but these errors were encountered: