-
-
Notifications
You must be signed in to change notification settings - Fork 767
[management, client] Add support for punycode domains in nameservers #3868
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
# Conflicts: # management/server/nameserver.go # management/server/nameserver_test.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the DNS nameserver handling by replacing plain string representations of domain names with strong‐typed domain.Domain values and adds explicit Punycode conversions to standardize domain formats.
- Replaces string parameters with domain.Domain or domain.List in upstream resolvers, server, and tests
- Updates functions to use Punycode conversions for consistent domain normalization
- Refactors related test cases and handler chain implementations to align with new domain types
Reviewed Changes
Copilot reviewed 38 out of 38 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
client/internal/dns/upstream*.go | Updates upstream resolver parameters from string to domain.Domain |
client/internal/dns/server*.go | Adapts DNS server functions to use domain.Domain and domain.List with appropriate Punycode conversions |
client/internal/dns/handler_chain*.go | Refactors handler chain pattern matching to use domain.Domain and applies Punycode conversion in comparisons |
client/internal/dns/host*.go | Converts domain handling within host config functions to domain.Domain with PunycodeString normalization |
client/iface/* | Changes interface functions to use domain.List for search domains on mobile and non-mobile platforms |
|
Describe your changes
Issue ticket number and link
Stack
Checklist