Catch and return dns query error in DNS01Record
This commit is contained in:
parent
06b2af47e6
commit
69f6a234c7
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user