Skip to content

Implement support for DNS over TCP fallback in Netty. #5555

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

Open
wants to merge 1 commit into
base: 4.x
Choose a base branch
from

Conversation

azotcsit
Copy link

This PR resolves #4493. The high-level idea is to support Netty feature to retry failed UDP DNS queries via TCP - netty/netty#9127.

I'm not sure about master branch, do I need to raise a separate PR for that?

@azotcsit azotcsit force-pushed the 4493_dns-over-tcp_v4.x branch 2 times, most recently from daa79e4 to deb7123 Compare April 17, 2025 14:35
Motivation:

Netty implemented a feature to support DNS over TCP fallback in case of a timeout for DNS over UDP (netty/netty#9127). This PR allows to enable that feature.

Changes:

Added retryWithTcpOnTimeout flag to AddressResolverOptions and corresponding classes.
@azotcsit azotcsit force-pushed the 4493_dns-over-tcp_v4.x branch from deb7123 to e37d583 Compare April 17, 2025 14:48
@azotcsit
Copy link
Author

Hi @vietj,

I'd be very grateful if you could take a look at this PR and guide me on the next steps. I'm new to Vert.x contribution process, so any suggestions would be very welcomed.

Thanks!

@vietj
Copy link
Member

vietj commented Apr 17, 2025

can you test this new option ?

@azotcsit
Copy link
Author

@vietj
Thanks for the prompt reply. Are you talking about manual testing or about writing unit tests?

I think I can test it manually, however it will take some time as the problem is not easily reproducible in our env. WRT unit testing, I'm not sure how to validate that TCP fallback happened. Could you please give me some references / suggestions on the best way to implement that?

@vietj
Copy link
Member

vietj commented May 6, 2025

we could need to mock the TCP server and respond to the same traffic that a server does

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

Successfully merging this pull request may close these issues.

2 participants