Open analogic opened 3 weeks ago
I am able to reproduce this on freebsd (13.3) with blek.cz and visa.com but not gmail.com and other domains however unlike the above test it also is an issue in v22.3.0 installed from ports.
I verified that it was fixed by https://github.com/nodejs/node/pull/53155 in Node.js 22.3.0.
Probably due to this (from c-ares changelog):
Due to a logic flaw dns name compression writing was not properly implemented which would result in the name prefix not being written for a partial match. This could cause issues in various record types such as MX records when using the deprecated API. Regression introduced in 1.28.0. Issue #757
Does that make this is a known limitation?
No
So, IIUC the solution would be to backport https://github.com/c-ares/c-ares/commit/d7c14a168f05c889672569674d807135fa3a2f82?
No, the solution is to cherry-pick or backport https://github.com/nodejs/node/pull/53155. That's why I added lts-watch- labels to it.
Oh, thanks, I don't know that much about backporting, thanks for the info!
Version
v20.15.0
Platform
Subsystem
dns
What steps will reproduce the bug?
I have this code:
And results:
How often does it reproduce? Is there a required condition?
Might be system/resolver dependent. Also there should be something unusual about this particular domain
What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Bare "blek.cz" host even don't have SMTP port open so it makes emails undeliverable
Additional information
No response