Skip to content

docs: clarify --dns-domain/--dns-option guest-vs-host DNS behavior and expand help text - #1835

Open
mvanhorn wants to merge 2 commits into
apple:mainfrom
mvanhorn:fix/1794-dns-domain-clarify
Open

mvanhorn wants to merge 2 commits into
apple:mainfrom
mvanhorn:fix/1794-dns-domain-clarify

Conversation

@mvanhorn

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

--dns-domain and --dns-option were documented only as "Default DNS domain" and "DNS options", which did not distinguish configuring the guest's /etc/resolv.conf from registering host or guest DNS records. #1794 raised exactly this confusion: the reporter and a maintainer both noted the help text never says these flags set the guest resolv.conf and do not register DNS records, and that local DNS domains are configured via container system dns create / config.toml [dns] instead. This expands the two @Option help strings and mirrors the clarification in the command-reference and how-to docs. Help-text and documentation only; no behavior change.

Testing

  • Tested locally (help-text/docs only — the change is @Option help strings and markdown, no code paths to exercise)
  • Added/updated tests (n/a: documentation/help-text change)
  • Added/updated docs

Fixes #1794

AI was used for assistance.

Expand the help text for --dns-domain/--dns-option to say they set the guest
/etc/resolv.conf and do not register DNS records (use 'container system dns
create' / config.toml [dns] for that), and mirror the clarification in the
command-reference and how-to docs. Fixes apple#1794.

Signed-off-by: Matt Van Horn <[email protected]>
@mvanhorn mvanhorn mentioned this pull request Jun 26, 2026
2 of 3 tasks
@mvanhorn

Copy link
Copy Markdown
Contributor Author

Merged main (0e0108d) and resolved the docs conflict.

  • how-to.md: the host-connection walkthrough moved to docs/host-integration.md, so the note about what --dns-domain and --dns-option do now lives there, right after container system dns create host.container.internal.
  • container system property set no longer exists, so the note now points to the domain key in the [dns] table of the system configuration instead.
  • container build and container builder start share the same Flags.DNS help text, so their command-reference.md entries now use the new wording too.

This branch has not been deployed

No deployments
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.

[Bug]: --dns-domain doesn't appear to work

1 participant