[PR #3459] [client] Fix DNS Nrpt policies #3747

Open
opened 2025-11-20 08:06:59 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/3459

State: closed
Merged: Yes


Describe your changes

  • The registry key that is currently used to check if the client is in GPO mode or not is not correct. You can have DNSClient key present if you define other DNS settings by GPO (Ex: Disable Netbios, disable mutlicast, ...) but not using GPO to configure Nrpt policies.
  • When client is in GPO mode, there is no need to push the local policy configuration as this entry will be discared. The way of Microsoft to check if there is NRPT settings configured by GPO is to check the DnsPolicyConfig key is present (That's why it's coherent to check that key and not the DNSClient key)

If any NRPT settings are configured in domain Group Policy, then all local Group Policy NRPT settings are ignored
https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn593632(v=ws.11)

Partial fix https://github.com/netbirdio/netbird/issues/3332

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/3459 **State:** closed **Merged:** Yes --- ## Describe your changes - The registry key that is currently used to check if the client is in GPO mode or not is not correct. You can have DNSClient key present if you define other DNS settings by GPO (Ex: Disable Netbios, disable mutlicast, ...) but not using GPO to configure Nrpt policies. - When client is in GPO mode, there is no need to push the local policy configuration as this entry will be discared. The way of Microsoft to check if there is NRPT settings configured by GPO is to check the DnsPolicyConfig key is present (That's why it's coherent to check that key and not the DNSClient key) > If any NRPT settings are configured in domain Group Policy, then all local Group Policy NRPT settings are ignored https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn593632(v=ws.11) ## Issue ticket number and link Partial fix https://github.com/netbirdio/netbird/issues/3332 ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2025-11-20 08:06:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#3747