From d46aa0016929ada0968588f9a4fb0719ed046d40 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Tue, 13 Jun 2023 13:58:21 +0300 Subject: [PATCH] main: upd docs --- README.md | 2 ++ main.go | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bcfe25879..5d4d078b6 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/main.go b/main.go index a5b84e50a..9e857a44a 100644 --- a/main.go +++ b/main.go @@ -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 // --