-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update flag descriptions and README.
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,15 +24,17 @@ A custom comma-separated list of upstream servers can be specified with the `-s` | |
|
||
```console | ||
-a address:port | ||
the address:port to listen on. In order to listen on the loopback interface only, use `127.0.0.1:53`. To listen on any interface, use `:53` (default ":53") | ||
address:port to listen on. In order to listen on the loopback interface only, use `127.0.0.1:53`. To listen on any interface, use `:53` (default ":53") | ||
-em | ||
collect metrics on evictions | ||
collect metrics on evictions | ||
-l string | ||
log file path | ||
log file path | ||
-minTTL minTTL | ||
minimum TTL in seconds to send to clients. If the TTL provided upstream is smaller, minTTL is used. (default 60) | ||
-pprof int | ||
The port to use for pprof debugging. If set to 0 (default) pprof will not be started. | ||
port to use for pprof debugging. If set to 0 (default) pprof will not be started. | ||
-s string | ||
comma-separated list of upstream servers (default "one.one.one.one:[email protected],dns.google:[email protected]") | ||
comma-separated list of upstream servers (default "one.one.one.one:[email protected],dns.google:[email protected]") | ||
``` | ||
|
||
## Credits | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,10 @@ const ( | |
var ( | ||
upstreamServers = flag.String("s", "one.one.one.one:[email protected],dns.google:[email protected]", "comma-separated list of upstream servers") | ||
logPath = flag.String("l", "", "log file path") | ||
minTTL = flag.Int("minTTL", 60, "Minimum TTL to send to clients. If the TTL provided upstream is smaller, `minTTL` is used.") | ||
minTTL = flag.Int("minTTL", 60, "minimum TTL in seconds to send to clients. If the TTL provided upstream is smaller, `minTTL` is used.") | ||
evictMetrics = flag.Bool("em", false, "collect metrics on evictions") | ||
addr = flag.String("a", ":53", "the `address:port` to listen on. In order to listen on the loopback interface only, use `127.0.0.1:53`. To listen on any interface, use `:53`") | ||
ppr = flag.Int("pprof", 0, "The port to use for pprof debugging. If set to 0 (default) pprof will not be started.") | ||
addr = flag.String("a", ":53", "`address:port` to listen on. In order to listen on the loopback interface only, use `127.0.0.1:53`. To listen on any interface, use `:53`") | ||
ppr = flag.Int("pprof", 0, "port to use for pprof debugging. If set to 0 (default) pprof will not be started.") | ||
) | ||
|
||
func main() { | ||
|