Skip to content

Commit abcc7f6

Browse files
author
Ravi Sankar Penta
committed
Increased DNS request timeout from 2 secs to 5 secs
- Noticed 2 seconds was not enough in some cases.
1 parent fc18c00 commit abcc7f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pkg/network/common/dns.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (d *DNS) getIPsAndMinTTL(domain string) ([]net.IP, time.Duration, error) {
142142
dialServer = net.JoinHostPort(server, d.port)
143143
}
144144
c := new(dns.Client)
145-
c.Timeout = 2 * time.Second
145+
c.Timeout = 5 * time.Second
146146
in, _, err := c.Exchange(msg, dialServer)
147147
if err != nil {
148148
return nil, defaultTTL, err

0 commit comments

Comments
 (0)