-
-
Notifications
You must be signed in to change notification settings - Fork 876
[client] Add Windows DNS Policies To GPO Path Always #4460
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
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 modifies the Windows DNS policy configuration to always apply both local and GPO (Group Policy Object) DNS policies, removing the conditional logic that previously only applied one or the other.
- Removes conditional GPO path selection logic
- Always configures both local DNS policies and GPO DNS policies
- Simplifies the policy path determination by removing the index-based naming
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
client/internal/dns/host_windows.go
Outdated
} | ||
|
||
if err := r.configureDNSPolicy(gpoDnsPolicyConfigMatchPath, domains, ip); err != nil { | ||
return i, fmt.Errorf("configure local DNS policy: %w", err) |
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.
The error message 'configure local DNS policy' is misleading since this code is actually configuring the GPO DNS policy, not the local one. It should be 'configure GPO DNS policy' to accurately reflect what failed.
return i, fmt.Errorf("configure local DNS policy: %w", err) | |
return i, fmt.Errorf("configure GPO DNS policy: %w", err) |
Copilot uses AI. Check for mistakes.
|
[client] Add Windows DNS Policies To GPO Path Always
Describe your changes
Issue ticket number and link
Stack
Checklist
Documentation
Select exactly one:
.
Docs PR URL (required if "docs added" is checked)
Paste the PR link from https://github.com/netbirdio/docs here:
https://github.com/netbirdio/docs/pull/__