Skip to content

feat(egress): add nameserver exempt for direct DNS forwarding#356

Merged
hittyt merged 4 commits intoalibaba:mainfrom
Pangjiping:feat/egress/ns-EXEMPT
Mar 10, 2026
Merged

feat(egress): add nameserver exempt for direct DNS forwarding#356
hittyt merged 4 commits intoalibaba:mainfrom
Pangjiping:feat/egress/ns-EXEMPT

Conversation

@Pangjiping
Copy link
Copy Markdown
Collaborator

@Pangjiping Pangjiping commented Mar 5, 2026

Summary

  • add nameserver exempt for direct DNS forwarding

Testing

  • Not run (explain why)
  • Unit tests
  • Integration tests
  • e2e / manual verification

Breaking Changes

  • None
  • Yes (describe impact and migration path)

Checklist

  • Linked Issue or clearly described motivation
  • Added/updated docs (if needed)
  • Added/updated tests (if needed)
  • Security impact considered
  • Backward compatibility considered

@Pangjiping Pangjiping added feature New feature or request component/egress labels Mar 5, 2026
@jwx0925
Copy link
Copy Markdown
Collaborator

jwx0925 commented Mar 6, 2026

@codex review

Copy link
Copy Markdown
Collaborator

@hittyt hittyt left a comment

Choose a reason for hiding this comment

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

The PR introduces a valuable 'nameserver exempt' feature to bypass egress proxying for specific destinations. However, the implementation has a few critical gaps, particularly regarding CIDR support in nftables and performance in the DNS hot path.

Comment thread components/egress/main.go
Comment thread components/egress/pkg/dnsproxy/proxy.go Outdated
Comment thread components/egress/pkg/iptables/redirect.go
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 437f383a1f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread components/egress/main.go Outdated
Copy link
Copy Markdown
Collaborator

@hittyt hittyt left a comment

Choose a reason for hiding this comment

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

The PR adds a necessary 'nameserver exempt' feature to handle cases where upstream DNS is only reachable via specific routes. However, there is a critical regression in IPv6 DNS redirection and some performance concerns in the proxy hot path.

Comment thread components/egress/pkg/dnsproxy/proxy.go Outdated
Comment thread components/egress/pkg/dnsproxy/proxy.go Outdated
Comment thread components/egress/pkg/iptables/redirect.go
@Pangjiping Pangjiping requested a review from hittyt March 10, 2026 02:04
Copy link
Copy Markdown
Collaborator

@hittyt hittyt left a comment

Choose a reason for hiding this comment

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

LGTM

@hittyt hittyt merged commit cbd22e6 into alibaba:main Mar 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/egress feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants