Skip to content
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

Fix for DNS system forwarder #603

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Fix for DNS system forwarder #603

merged 1 commit into from
Jul 12, 2023

Conversation

nmittler
Copy link
Contributor

@nmittler nmittler commented Jul 12, 2023

Currently, if a DNS request is forwarded to the upstream resolver and fails with NXDomain, the client will see a successful response with no records.

This is due to the fact that the DNS system forwarder returns an error of type ResolveError, which was not being handled properly by the Handler.

This fixes the logic and adds tests for the system forwarder.

Fixes #600

@nmittler nmittler requested a review from a team as a code owner July 12, 2023 13:27
@istio-testing istio-testing added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 12, 2023
@kdorosh
Copy link
Contributor

kdorosh commented Jul 12, 2023

resolves #600 ?

@istio-testing istio-testing added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 12, 2023
Copy link
Contributor

@kdorosh kdorosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes lgtm, also confirmed it fixes the istio integration test error istio/istio#45900 (comment)

Currently, if a DNS request is forwarded to the upstream resolver and fails with NXDomain, the client will see a successful response with no records.

This is due to the fact that the DNS system forwarder returns an error of type ResolveError, which was not being handled properly by the Handler.

This fixes the logic and adds tests for the system forwarder.

Fixes istio#600
Copy link
Contributor

@bleggett bleggett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a more robust fix than #599

@kdorosh kdorosh mentioned this pull request Jul 12, 2023
@istio-testing istio-testing merged commit 912a060 into istio:master Jul 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DNS forwarder not propagating nxdomain properly
5 participants