DNS 문제: NXDOMAIN은 A를 예시 도메인으로 찾고 있습니다. 도메인에 대한 DNS 레코드가 있는지 확인하세요.

DNS 문제: NXDOMAIN은 A를 예시 도메인으로 찾고 있습니다. 도메인에 대한 DNS 레코드가 있는지 확인하세요.

저는 AWS 리눅스를 사용합니다. 이것을 사용하여 certbot내 웹사이트를 http에서 https로 변경하고 싶습니다 .

내가 실행할 때 :sudo certbot certonly --webroot -w ./ -d example——domain

오류는 다음과 같습니다.

Requested name http://example——domain appears to be a URL, not a FQDN. Try again without the leading "http://".
 sudo certbot certonly --webroot -w ./ -d example——domain
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Requesting a certificate for example——domain
Performing the following challenges:
http-01 challenge for example——domain
Using the webroot path /home/ec2-user/william for all unmatched domains.
Waiting for verification...
Challenge failed for domain example——domain
http-01 challenge for example——domain
Cleaning up challenges
Some challenges have failed.

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: example
   Type:   dns
   Detail: DNS problem: NXDOMAIN looking up A for
   example——domain - check that a DNS record exists
   for this domain

Nginx 구성:

 server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  _;
        root         /usr/share/nginx/html;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;
        # disable checking file size for upload
        client_max_body_size 0;

        location / {
                proxy_pass http://127.0.0.1:8000/;
                proxy_set_header HOST \$host;
                proxy_set_header X-Forwarded-Proto \$scheme;
                proxy_set_header X-Real-IP \$remote_addr;
                proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
        }


    location /flower/ {
            # rewrite ^/flower/(.*)$ /\$1 break;
            proxy_pass http://127.0.0.1:5555/;
            proxy_set_header HOST \$host;
            proxy_set_header X-Forwarded-Proto \$scheme;
            proxy_set_header X-Real-IP \$remote_addr;
            proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
    }

관련 정보