eclipse-vertx / eclipse-vertx/vert.x

Support DNS over TCP with retry

Open
#4,493 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
14.7k
Forks
2.1k
Avg merge
2d 7h
Merged PRs (30d)
28

Description

This is a follow up on #4309

I think the problem was not completely resolved.

When the DNS server answers with the flag truncated but does not deliver any results the DNS client should retry using TCP.

When I'm looking at the current test it only tests that the DNS client can handle a DNS response with the truncated flag set and one result.

Would it be possible to add this additional functionality.

That would be very helpful.

I'm not a Netty expert but it seams to be fixed already there.

The desired behavior would be
1. DNS client tries to resolve the hostname via UDP (default)
2. DNS server answers with no results but the truncated flag is set
3. DNS client retries to resolve the hostname via TCP
4. DNS server answers with results

Unfortunately, I'm not an expert in netty and therefore unable to fix it myself.

If any additional feedback is required I'm more than happy to help here.

Vertx version: 4.3.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.