Skip to content

Add default DNS configuration properties#1872

Open
Jalendar10 wants to merge 1 commit into
apple:mainfrom
Jalendar10:codex/default-dns-config
Open

Add default DNS configuration properties#1872
Jalendar10 wants to merge 1 commit into
apple:mainfrom
Jalendar10:codex/default-dns-config

Conversation

@Jalendar10

Copy link
Copy Markdown

Summary

Add system-level DNS defaults for containers through the existing [dns] configuration section.

Changes

  • Add [dns].nameservers, [dns].searchDomains, and [dns].options to ContainerSystemConfig.
  • Apply configured DNS defaults when container run / container create do not pass the corresponding DNS CLI flags.
  • Preserve existing precedence: explicit CLI DNS flags override config defaults, and --no-dns disables DNS configuration entirely.
  • Update config reference docs and examples.

Fixes #1449.

Validation

  • swift test --filter UtilityTests
  • swift test --filter ConfigurationLoaderTests
  • swift test --filter ContainerAPIClientTests
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: system property for default --dns.

1 participant