Skip to content

Commit

Permalink
main: upd docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Jun 13, 2023
1 parent 641cc92 commit d46aa00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Application Options:
be specified multiple times
--all-servers If specified, parallel queries to all configured upstream servers are enabled
--fastest-addr Respond to A or AAAA requests only with the fastest IP address
-w, --timeout= Timeout for outbound DNS queries to remote upstream servers in
seconds (default: 10s)
--cache If specified, DNS cache is enabled
--cache-size= Cache size (in bytes). Default: 64k
--cache-min-ttl= Minimum TTL value for DNS entries, in seconds. Capped at 3600.
Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ type Options struct {
// detected by ICMP response time or TCP connection time
FastestAddress bool `yaml:"fastest-addr" long:"fastest-addr" description:"Respond to A or AAAA requests only with the fastest IP address" optional:"yes" optional-value:"true"`

// Timeout for outcoming DNS queries in seconds. Default is 10s.
Timeout time.Duration `yaml:"timeout" short:"i" long:"timeout" description:"Timeout for outcoming DNS queries in seconds" default:"10s"`
// Timeout for outbound DNS queries to remote upstream servers in seconds.
// Default is 10s.
Timeout time.Duration `yaml:"timeout" short:"w" long:"timeout" description:"Timeout for outbound DNS queries to remote upstream servers in seconds" default:"10s"`

// Cache settings
// --
Expand Down

0 comments on commit d46aa00

Please sign in to comment.