Letsencrypt 错误 DNS 问题:NXDOMAIN 查找 A for etc

Letsencrypt error DNS problem: NXDOMAIN looking up A for etc

我在 google 域购买了一个域名:"yousshark.com" 然后我在 cloudflare.com 开了一个免费账户来管理我的域名。

我在 Digitalocean 有一个云 VM(Droplet)。 Ubuntu 18.04 基本映像。我已经 git 克隆了一个提供简单句子的基本节点应用程序(仅用于测试目的)。

在cloudflare中,我添加了一条记录指向子域"nodejs-ssl-deploy.code"到服务器地址:

所以之后我在 VM 中输入了以下命令:

sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

cd /opt/letsencrypt

./letsencrypt-auto certonly --standalone

所以最后一个命令提示输入我要为其生成 ssl 证书的域,所以我输入了 "nodejs-ssl-deploy.code.yousshark.com"。 但我只能得到这个错误:

Please enter in your domain name(s) (comma and/or space separated)  (Enter 'c'
to cancel): nodejs-ssl-deploy.code.yousshark.com
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for nodejs-ssl-deploy.code.yousshark.com
Waiting for verification...
Challenge failed for domain nodejs-ssl-deploy.code.yousshark.com
http-01 challenge for nodejs-ssl-deploy.code.yousshark.com
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: nodejs-ssl-deploy.code.yousshark.com
   Type:   connection
   Detail: dns :: DNS problem: NXDOMAIN looking up A for
   nodejs-ssl-deploy.code.yousshark.com

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address. 

我什至尝试在我的 google 域页面中添加子域:

但我得到的是这个错误。 哪里可能做错了?

我通过手动将记录添加到 google dns 服务器,在 google 域的管理员中解决了我的问题。 如果有人遇到同样的问题,请随时与我联系。