Catch and return dns query error in DNS01Record

This commit is contained in:
Louis Taylor 2018-07-20 18:50:44 +01:00
parent 06b2af47e6
commit 69f6a234c7
No known key found for this signature in database
GPG Key ID: 8E81A6DAE13E7098

View File

@ -16,5 +16,8 @@ func DNS01Record(domain, value string) (string, string, int) {
if err == nil && r.Rcode == dns.RcodeSuccess {
fqdn = updateDomainWithCName(r, fqdn)
}
return fqdn, value, 60
if err != nil {
return "", "", 0, err
}
return fqdn, value, 60, nil
}