Skip to content

Commit

Permalink
Update flag descriptions and README.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikispag committed Oct 1, 2023
1 parent 89ea602 commit 64afc97
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 64afc97

Please sign in to comment.