agnhost: increase dns timeout from 5 seconds to 20 seconds

Signed-off-by: Ernest Wong <chuwon@microsoft.com>
This commit is contained in:
Ernest Wong 2021-03-17 16:07:35 -07:00
parent 862aa6d3a0
commit 0a368288ac
No known key found for this signature in database
GPG Key ID: 2FA4704546158B3F

View File

@ -187,7 +187,7 @@ func ensureWindowsDNSAvailability(issuer string) error {
return err
}
return wait.PollImmediate(1*time.Second, 5*time.Second, func() (bool, error) {
return wait.PollImmediate(5*time.Second, 20*time.Second, func() (bool, error) {
ips, err := net.LookupHost(u.Host)
if err != nil {
log.Println(err)