Ansible letsencrypt failing dns resolution

My domain is:

I ran this command: no command it is using ansible

It produced this output:

Could not access the challenge file for the hosts/domains: Let's
Encrypt requires every domain/host be publicly accessible. Make sure that a
valid DNS record exists for and that they point to this server's
IP. If you don't want these domains in your SSL certificate, then remove them
from `site_hosts`. See for more details.
failed: [] ( => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "item", "changed": false, "failed": true, "failed_hosts": [""], "invocation": {"module_args": {"file": "ping.txt", "hosts": [""], "path": ".well-known/acme-challenge"}}, "item": {"key": "", "value": {"admin_email": "", "admin_user": "dominator", "branch": "master", "cache": {"duration": "30s", "enabled": false, "skip_cache_cookie": "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in", "skip_cache_uri": "/wp-admin/|/wp-json/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml"}, "local_path": "../", "multisite": {"enabled": false}, "repo": "", "site_hosts": [{"canonical": ""}], "ssl": {"enabled": true, "provider": "letsencrypt"}}}, "rc": 1}}

My web server is (include version): nginx/1.21.6

The operating system my web server runs on is (include version): ubuntu 20.04

My hosting provider, if applicable, is: azure

I can login to a root shell on my machine (yes or no, or I don't know):

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

Is there a tool to see propagation DNS changes for letsencrypt ?

Hi @koraysels and Welcome to the community!

Might help


Does Ansible also provide an exact error message from the Let's Encrypt validation server somewhere? To me, the current output isn't helping very much to be honest.


Why do you think there is a DNS problem?

1 Like

It works now.. is there a tool we can use to see if letsencrypt dns resolves correctly?

Sorry for being brief, sent from my iPhone

1 Like

What do you mean by "resolves correctly"?

Let's Encrypt doesn't cache DNS queries, it goes to the authoritative DNS each time.

1 Like

I mean check which ip the letsencypt server resolves to so the acme challenge can correctly function and the certificate can be created. Sometimes it takes a long time after changes to a DNS record. I would like to be able to see when letsencrypt resolves to the newly set IP so i can run the script. a DNS checker specifically for letsencrypt if you will. that would be super handy!

yes, but which DNS server is letsencypt using? because i know of this tool, but it gives me no more information than where the new IPs are updated.. i don;t know which server gets used by letsencypt

There is no "DNS server" used by LE. It's using the Unbound software to "crawl" the entire DNS tree, starting at the root DNS servers, crawling down the tree using the TLD servers all the way to the authorative DNS servers.

You can use to mimic this procedure.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.