作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在 google domains 买了一个域名:“yousshark.com”然后我在 cloudflare.com 上开了一个免费帐户来管理我的域名。
我在 Digitalocean 有一个云 VM(Droplet)。一个 Ubuntu 18.04 基础镜像。我已经 git 克隆了一个基本的节点应用程序,它提供一个简单的句子(仅用于测试目的)。
在 cloudflare 中,我添加了一条记录指向服务器地址的子域“nodejs-ssl-deploy.code”:
之后我在虚拟机中输入了以下命令:
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 服务器解决了我的问题。如果有人遇到同样的问题,请随时与我联系。
关于linux - Letsencrypt错误DNS问题: NXDOMAIN looking up A for etc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55995102/
我是一名优秀的程序员,十分优秀!