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

Supporting CaseInsensitive Queries #54

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Jul 31, 2023

We have a DNS query test.cloud.example.com which returns a list of IP addresses. What should happen when you query test.cloud.EXAMPLE.COM. According to the RFC https://www.rfc-editor.org/rfc/rfc4343#section-4.2 we should return the same list of IP addresses for both queries.

This also implies that if we maintain two dnsendpoints test.cloud.example.com with address 1.1.1.1 and test.cloud.EXAMPLE.COM with address 2.2.2.2, we must return the merge [1.1.1.1 2.2.2.2] for both queries.

This PR fixes queries processing and adds tests for this particular use-case.

Signed-off-by: Michal Kuritka kuritka@gmail.com

We have a DNS query `test.cloud.example.com` which returns a list of IP addresses. What should happen when you
query `test.cloud.EXAMPLE.COM`. The answer is in the RFC https://www.rfc-editor.org/rfc/rfc4343#section-4.2.
We return the same list of IP addresses for both queries. This also implies that if we maintain two dnsendpoints
`test.cloud.example.com` with address `1.1.1.1` and `test.cloud.EXAMPLE.COM` with address `2.2.2.2`, we must return
the merge `[1.1.1.1 2.2.2.2]` for both queries.

Signed-off-by: Michal Kuritka <kuritka@gmail.com>
Copy link
Collaborator

@k0da k0da left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ytsarev ytsarev left a comment

Choose a reason for hiding this comment

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

Great find 👍

@kuritka kuritka merged commit 659b497 into main Aug 3, 2023
9 checks passed
@kuritka kuritka deleted the support-case-sensitive-queries branch August 3, 2023 13:42
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.

None yet

6 participants