简体   繁体   English

Letsencrypt 错误 DNS 问题:NXDOMAIN 查找 A 等

[英]Letsencrypt error DNS problem: NXDOMAIN looking up A for etc

i've bought a domain name at google domains: "yousshark.com" Then i opened a free account at cloudflare.com to manage my domain name.我在 google domain 购买了一个域名:“yousshark.com”然后我在 cloudflare.com 开设了一个免费帐户来管理我的域名。

I have a cloud VM (droplet) at Digitalocean.我在 Digitalocean 有一个云 VM(小滴)。 An Ubuntu 18.04 base image.一个 Ubuntu 18.04 基础镜像。 I've git cloned a basic node app which serves a simple sentence (just for testing purpose).我已经 git 克隆了一个基本的节点应用程序,它提供一个简单的句子(仅用于测试目的)。

Inside cloudflare, i added a record to point to the subdomain "nodejs-ssl-deploy.code" to the server address:在 cloudflare 中,我添加了一条记录,指向服务器地址的子域“nodejs-ssl-deploy.code”:

在此处输入图片说明

So after that i entered the following command inside the VM:所以在那之后我在VM中输入了以下命令:

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

cd /opt/letsencrypt

./letsencrypt-auto certonly --standalone

So the last command offers a prompt to enter the domain for which i want generate a ssl certificate, so i entered "nodejs-ssl-deploy.code.yousshark.com" .所以最后一个命令提示输入我想要为其生成 ssl 证书的域,所以我输入了 "nodejs-ssl-deploy.code.yousshark.com" 。 But all i can get is this error :但我能得到的只是这个错误:

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. 

I even tried by adding the subdomain inside my google domain page:我什至尝试在我的 google 域页面中添加子域: 在此处输入图片说明

But i all get is this error.但我得到的是这个错误。 What could be done wrong ?可能做错什么?

i resolved my issue by adding record manually to the google dns servers, inside the admin of google domains.我通过在 google 域管理员中手动向 google dns 服务器添加记录来解决我的问题。 If anyone gets the same issue, feel free to contact me.如果有人遇到同样的问题,请随时与我联系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM