Skip to content

DNS: Only cache CNAME if part of the queried domain#16873

Merged
normanmaurer merged 4 commits into
4.1from
dns_c_41
Jun 2, 2026
Merged

DNS: Only cache CNAME if part of the queried domain#16873
normanmaurer merged 4 commits into
4.1from
dns_c_41

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

We should only cache the CNAME if it is part of the queried domain to ensure the name server is really authoritive for it and not provide us incorrect data.

Modifications:

  • Only cache if CNAME is part of the queried domain
  • Add unit test

Result:

No more DNS Cache Poisoning (Bailiwick Bypass) possible

Motivation:

We should only cache the CNAME if it is part of the queried domain to ensure the name server is really authoritive for it and not provide us incorrect data.

Modifications:

- Only cache if CNAME is part of the queried domain
- Add unit test

Result:

No more DNS Cache Poisoning (Bailiwick Bypass) possible
@normanmaurer normanmaurer added this to the 4.1.135.Final milestone Jun 1, 2026
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Jun 1, 2026
@normanmaurer normanmaurer merged commit 5749d78 into 4.1 Jun 2, 2026
18 of 19 checks passed
@normanmaurer normanmaurer deleted the dns_c_41 branch June 2, 2026 10:09
@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #16898

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Jun 2, 2026
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.

2 participants