dns: fix resolving STRICT_DNS cluster endpoint FQDN with trailing dot '.'#13644
dns: fix resolving STRICT_DNS cluster endpoint FQDN with trailing dot '.'#13644htuch merged 6 commits intoenvoyproxy:masterfrom lmarszal:13587-fqdn-trailing-dot
Conversation
|
CC @htuch |
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
htuch
left a comment
There was a problem hiding this comment.
Thanks for the fix, couple of short questions.
| "//bazel:windows_x86_64": "cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/nameser.h $INSTALLDIR/include/nameser.h", | ||
| "//conditions:default": "", | ||
| "//bazel:windows_x86_64": "cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/src/lib/nameser.h $INSTALLDIR/include/nameser.h && cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/src/lib/ares_dns.h $INSTALLDIR/include/ares_dns.h", | ||
| "//conditions:default": "cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/src/lib/ares_dns.h $INSTALLDIR/include/ares_dns.h", |
There was a problem hiding this comment.
Why is this now needed in non-Windows?
There was a problem hiding this comment.
There was a change in directory structure in c-ares (c-ares/c-ares@0bf721c). We're using macros from ares_dns.h in dns_imp_test.cc - this header file is no longer available after make install, so I had to make a "hack" in order to make it visible for us.
|
Run into some concurrency (tsan and asan) problems in upgraded I think I know where the problem is - I will update this PR after resolving this problem upstream. |
|
Interesting, let us know if you need any pointers on Envoy's DNS implementation. I just merged #13582, which makes the mentioned last_updated --> release_date rename, so you might want to merge master to pick that up. Thanks. |
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
|
/retest |
|
Retrying Azure Pipelines. |
|
@htuch It's all green. |
|
/lgtm deps |
|
Thanks for fixing! We hit this problem when upgrading envoy from 1.14 -> 1.16. Will this change make its way into a release any time soon? |
|
@lizan @mattklein123 @PiotrSikora Is it possible to backport this to |
|
Discussed offline with @lizan . Since this has dependencies and hence an element of risk involved, backport for this is not recommended. |
Commit Message: dns: fix resolving STRICT_DNS cluster endpoint FQDN with trailing dot '.'
Additional Description: bump c-ares dependency to a version having c-ares/c-ares@ba59781 issue resolved
Risk Level: Low
Testing: Manual test - repro steps from #13587 now results in expected behaviour
Docs Changes: feature of adding trailing dot '.' to FQDN was never documented; not sure if applicable
Release Notes: N/A
Platform Specific Features: N/A
Fixes #13587