我在谷歌域名上买了一个域名:"yousshark.com“,然后我在cloudflare.com上开了一个免费账户来管理我的域名。
我在Digitalocean有一个云VM (水滴)。一个Ubuntu 18.04基础镜像。我已经克隆了一个基本的节点应用程序,它提供了一个简单的句子(只是为了测试目的)。
在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域名页面中添加了子域名:

但我得到的只是这个错误。还能做错什么呢?
发布于 2019-05-06 11:10:07
我解决了我的问题,手动添加记录到谷歌dns服务器,内部的谷歌域名管理。如果有人遇到同样的问题,请随时与我联系。
https://stackoverflow.com/questions/55995102
复制相似问题