[PR #2284] [MERGED] Refactor macOS system DNS configuration #14919

Closed
opened 2026-08-05 03:06:35 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2284
Author: @hurricanehrndz
Created: 7/17/2024
Status: Merged
Merged: 7/18/2024
Merged by: @mlsmaycon

Base: mainHead: chernand/refactor_macos_split_dns


📝 Commits (1)

  • bac8012 Refactor macOS system DNS configuration

📊 Changes

2 files changed (+115 additions, -52 deletions)

View changed files

📝 client/internal/dns/host.go (+6 -0)
📝 client/internal/dns/host_darwin.go (+109 -52)

📄 Description

On macOS use the recommended settings for providing split DNS. As per the docs an empty string will force the configuration to be the default. In order to to support split DNS an additional service config is added for the local server and search domain settings.

see: https://developer.apple.com/documentation/devicemanagement/vpn/dns

Describe your changes

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2284 **Author:** [@hurricanehrndz](https://github.com/hurricanehrndz) **Created:** 7/17/2024 **Status:** ✅ Merged **Merged:** 7/18/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `chernand/refactor_macos_split_dns` --- ### 📝 Commits (1) - [`bac8012`](https://github.com/netbirdio/netbird/commit/bac8012d4d5bcab11c7f021db1077bb58b1f1293) Refactor macOS system DNS configuration ### 📊 Changes **2 files changed** (+115 additions, -52 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/host.go` (+6 -0) 📝 `client/internal/dns/host_darwin.go` (+109 -52) </details> ### 📄 Description On macOS use the recommended settings for providing split DNS. As per the docs an empty string will force the configuration to be the default. In order to to support split DNS an additional service config is added for the local server and search domain settings. see: https://developer.apple.com/documentation/devicemanagement/vpn/dns ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:35 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14919