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

Add configuration option to ignore DNS RCODE 3 as errors #566

Merged
merged 6 commits into from
Aug 30, 2023

Conversation

YDMsama
Copy link
Contributor

@YDMsama YDMsama commented Aug 28, 2023

Description

This pull request introduces a new configuration option ignore_dns_rcode3_error that allows users to specify whether DNS responses with RCODE 3 (Name Error) should be treated as errors or not.

Motivation and Context

In Kubernetes clusters using the ClusterFirst DNS policy, KubeDNS may return RCODE 3 for public domains, which are usually treated as errors. This behavior may lead to unnecessary alerts and logging, especially when users are aware of this behavior and do not consider it an error.

How Has This Been Tested?

The compiled image runs normally.
After setting the ignore_dns_rcode3_error configuration to true and running the dig nonexistentsubdomain.dns3test.com command, the absence of trace metrics in Kindling indicates that the configuration change is effective and DNS queries with an RCODE of 3 are no longer considered errors.

YDMsama and others added 3 commits August 28, 2023 16:10
Signed-off-by: YDMsama <ydmsama@gmail.com>
Signed-off-by: YDMsama <ydmsama@gmail.com>
Signed-off-by: YDMsama <127646431+YDMsama@users.noreply.github.com>
@dxsup dxsup requested review from hocktea214 and dxsup August 29, 2023 07:30
@hocktea214
Copy link
Collaborator

Please add TestCase for TestDnsProtocol() in network_analyzer_test

Signed-off-by: YDMsama <ydmsama@gmail.com>
Signed-off-by: YDMsama <ydmsama@gmail.com>
Signed-off-by: YDMsama <ydmsama@gmail.com>
@dxsup dxsup merged commit 410d242 into KindlingProject:main Aug 30, 2023
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.

3 participants