Basically it seems like either LE has wrong IP address cached or it uses NS record instead of A to resolve the IP.
My domain is configured correctly (checked with dig against @8.8.8.8, 8.8.4.4, dnscheck.pingdom.com, domain’s nameserver and couple of ISP nameservers) and IP for this domain has not changed for months.
That means I can’t create certificate. What to do?
Thanks for sharing the domain name. I don’t know how to read everything here yet because I’m not very accustomed to this format, but there’s a new tool to explain how Let’s Encrypt got the DNS resolution answer that it got, so you can see that here:
@jsha, can you help us to understand more about the Unbound test output? It matches perfectly with what the CA itself is doing but I’ve found it a little difficult to understand.
Can you show us the output of Certbot (or other command) that leads you to believe that Let’s Encrypt is contacting the wrong IP address? Can you tell us what software your authoritative nameservers are running? Do your authoritative nameservers use anycast?
But as Seth pointed out, there’s not enough detail to see from which server it got that answer. The logs there are just the debug-level log output from Unbound, so it isn’t necessarily optimized to make problems easy to figure out to people other than the authors (but sometimes it’s useful).
This is output from the Certbot using manual verification:
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. www.satirer.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.satirer.com/.well-known/acme-challenge/L9B1UVPJuCquCQ7os9NanIsY-19Kmf8zPdBQoInS8Kk [212.47.238.217]: 404, satirer.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://satirer.com/.well-known/acme-challenge/hWRDQhJpZBBMuy-lp3OxAGNGpSAYYM8kyzW7HM4o9VI [212.47.238.217]: 404
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: www.satirer.com
Type: unauthorized
Detail: Invalid response from
http://www.satirer.com/.well-known/acme-challenge/L9B1UVPJuCquCQ7os9NanIsY-19Kmf8zPdBQoInS8Kk
[212.47.238.217]: 404
Domain: satirer.com
Type: unauthorized
Detail: Invalid response from
http://satirer.com/.well-known/acme-challenge/hWRDQhJpZBBMuy-lp3OxAGNGpSAYYM8kyzW7HM4o9VI
[212.47.238.217]: 404
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address.
This is nslookup showing authoritative servers for that domain
root@xxx:~# nslookup
> set querytype=soa
> satirer.com
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
satirer.com
origin = ns1.parkomat.co
mail addr = admin.satirer.com
serial = 1501195151
refresh = 10000
retry = 2400
expire = 604800
minimum = 3600
Authoritative answers can be found from:
satirer.com nameserver = ns1.parkomat.co.
satirer.com nameserver = ns2.parkomat.co.
ns1.parkomat.co internet address = 212.47.238.217
ns2.parkomat.co internet address = 212.47.238.217