gpt4 book ai didi

linux - Letsencrypt错误DNS问题: NXDOMAIN looking up A for etc

转载 作者:太空狗 更新时间:2023-10-29 12:39:07 26 4
gpt4 key购买 nike

我在 google domains 买了一个域名:“yousshark.com”然后我在 cloudflare.com 上开了一个免费帐户来管理我的域名。

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

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

enter image description here

之后我在虚拟机中输入了以下命令:

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 域页面中添加子域: enter image description here

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

最佳答案

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

关于linux - Letsencrypt错误DNS问题: NXDOMAIN looking up A for etc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55995102/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com