Updated Example Configurations (markdown)

Cuong Manh Le
2024-09-14 22:57:12 +07:00
parent 8e758e023e
commit 409e3a1fc6
+14
@@ -24,6 +24,20 @@ If you wish to route DNS queries yourself, without any magic on the part of `ctr
- `ctrld service start --cd=RESOLVER_ID` - starts ctrld service in cd mode but makes no DNS routing changes
- `ctrld service start --config=/path/to/ctrld.toml` - starts ctrld service in local config mode but makes no DNS routing changes
### Remember running service configuration
Since v1.3.8, if `ctrld` has been already installed, running `ctrld start` or `ctrld service start` will start the existing `ctrld` service instead of installing new one. That means `ctrld` service will be started with last service configuration.
Example:
```
$ ctrld start --cd=RESOLVER_ID -vv
$ ctrld stop
$ ctrld start # service will run with --cd=RESOLVER_ID and -vv flags.
```
Passing any new arguments/flags to `ctrld start` will result in old behavior.
## Simplest
The simplest possible configuration looks like this. The following config does the following:
- Spawn a single DNS listener on `0.0.0.0` (all interfaces) and port `53`