diff --git a/Sources/Services/ContainerAPIService/Client/Flags.swift b/Sources/Services/ContainerAPIService/Client/Flags.swift index 6a964e8cb..3f63a1a54 100644 --- a/Sources/Services/ContainerAPIService/Client/Flags.swift +++ b/Sources/Services/ContainerAPIService/Client/Flags.swift @@ -134,13 +134,19 @@ public struct Flags { @Option( name: .customLong("dns-domain"), - help: .init("Default DNS domain", valueName: "domain") + help: .init( + "Set guest /etc/resolv.conf domain; does not register host or guest DNS records. Use 'container system dns create' and config.toml [dns] for local DNS domains", + valueName: "domain" + ) ) public var domain: String? = nil @Option( name: .customLong("dns-option"), - help: .init("DNS options", valueName: "option") + help: .init( + "Set guest /etc/resolv.conf options (debug, ndots:0); does not register DNS records. Use 'container system dns create' and config.toml [dns] for local domains", + valueName: "option" + ) ) public var options: [String] = [] diff --git a/docs/command-reference.md b/docs/command-reference.md index 9254e35d2..7475e4b36 100644 --- a/docs/command-reference.md +++ b/docs/command-reference.md @@ -48,8 +48,8 @@ container run [] [ ...] * `--cidfile `: Write the container ID to the path provided * `-d, --detach`: Run the container and detach from the process * `--dns `: DNS nameserver IP address -* `--dns-domain `: Default DNS domain -* `--dns-option