add doc for smartdns command line
This commit is contained in:
@@ -20,6 +20,7 @@ Like Dnsmasq, smartdns supports ipset and nftset, which can use TPROXY to transp
|
||||
|
||||
```shell
|
||||
ipset /domain/ipset
|
||||
ipset /domain/[#4:ipsetv4,#6:ipsetv6]
|
||||
```
|
||||
|
||||
1. Timeout
|
||||
|
||||
@@ -83,3 +83,18 @@ hide:
|
||||
|user|run as user|root|user [username]|user nobody
|
||||
|ca-file|certificate file|/etc/ssl/certs/<br />ca-certificates.crt|path|ca-file /etc/ssl/certs/ca-certificates.crt
|
||||
|ca-path|certificates path|/etc/ssl/certs|path|ca-path /etc/ssl/certs
|
||||
|
||||
## Command Line Options
|
||||
|
||||
The command line options for smartdns are as follows, you can also use `smartdns -h` to view the help.
|
||||
|
||||
| Option | Function | Default Value | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| -f | Run in foreground | None | By default, the program runs as a background daemon. |
|
||||
| -c | Configuration file path | /etc/smartdns/smartdns.conf | Path to the configuration file. |
|
||||
| -p | PID file | /run/smartdns.pid | Path to the process PID file. |
|
||||
| -R | Automatic restart on exception | None | Automatically restart the process on exception. |
|
||||
| -S | Generate coredump on crash | None | Generate a coredump file on process crash for debugging purposes. |
|
||||
| -x | Log to terminal | None | Output logs to the terminal. |
|
||||
| -v | Display version | None | Display the version of smartdns. |
|
||||
| -h | Display command line help | None | Display the command line help. |
|
||||
|
||||
Reference in New Issue
Block a user