Detail: DNS problem: NXDOMAIN looking up A for dns.srv.world - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for dns.srv.world - check that a DNS record exists for this domain

My domain is:
: dns.srv.world
I ran this command:
certbot certonly --webroot -w /var/www/html -d dns.srv.world
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for dns.srv.world

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: dns.srv.world
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for dns.srv.world - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for dns.srv.world - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Some challenges have failed.

[root@65487fc2125d /]# certbot certonly --standalone --http-01-port 8080 -d srv.world
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for srv.world

Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: srv.world
Type: connection
Detail: 180.43.145.38: Fetching http://srv.world/.well-known/acme-challenge/0sBPaYJiP7PZjAGHp7KoxVcBwx9ld-HMQComsqu3TLg: Error getting validation data

Hint: The Certificate Authority failed to download the challenge files from the temporary standalone webserver started by Certbot on port 8080. Ensure that the listed domains point to this machine and that it can accept inbound connections from the internet.

"NXDOMAIN" means the DNS server(s) of srv.world have no existence of the dns subdomain.

Properly configured DNS, reachable world-wide, is required to get a certificate.

3 Likes

Thank you
how can i solve this problem

2 Likes

By adding the dns label to your DNS zone using the DNS zone editor of your DNS hosting provider.

You probably might want to learn more about DNS in general if you have to ask this quesrion :slight_smile:

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.