Closed AlpsMonaco closed 5 months ago
maybe it is a DNS provider error?
It's not a DNS provider error, but a problem with your network (local DNS, firewall, etc.).
You can provide resolvers/nameservers: dns01.AddRecursiveNameservers()
alibaba cloud support confirmed that their default dns has some problem and they suggested that I modify /etc/resolv.conf
.
using dns01.AddRecursiveNameservers()
is a good choice,thank you so much. @ldez
Welcome
What did you expect to see?
a new certificate is issued successfully.
What did you see instead?
How do you use lego?
Library
Reproduction steps
Hi there , I am managed to locate where the problem is and it is reproducible. from
github.com/go-acme/lego/v4@v4.16.1/providers/dns/alidns/alidns.go:199
dns01.FindZoneByFqdn(domain)
sometimes returns only the top-level domain. maybe it is a DNS provider error?I write a small program and run it on the server which I came across the problem.
I have two domains start with '7' and 't', results i run it on my server:
the results are so random,sometimes it is ok but sometimes it is bad. Is changing the dns server of my linux server the only option?
Version of lego
Logs
Go environment (if applicable)