Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1K
Visualizações
DNS problem: NXDOMAIN looking up A for www.exampl.com - check that a DNS record exists for this domain

I,m going to gain SSL for nginx via certbot

but i face this error "DNS problem: NXDOMAIN looking up A for www.example.com - check that a DNS record exists for this domain "

howevr I have two A record in cloudflare:

example.com ip www ip

what should I do?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

When the Let's Encrypt Certbot tried to validate your domain, it failed to find the IP address (A record) of the domain to match if the certbot is running from the IP location.

Possible Solution 1

Check if the Cloudflare proxy is on for the A record. If it is in on state, turn it off. Usually, this is done by clicking the orange cloud icon on the DNS page for the A record.

Possible Solution 2

If it's already done and still you are facing errors, edit the TTL (Time To Live) field for the A record to 60. Your domain DNS is not propagated and this might speed up the process.

Possible Solution 3

If none of the above works, there is something wrong with the certbot or the connection from the certbot to the DNS of your domain. Add --debug-challenges while you run the command to issue SSL. This might give you more info.

Possible Solution 4

One last resort is to try the manual mode. You can verify the domain ownership via http challenge instead of dns mode. Follow the instructions here in the Certbot documentation.

However, you might need to associate the certificate once issued to your nginx configuration. Find the below config for your reference. You can easily use this make your service / website up and running after getting the certificate.

server {
        server_name example.com;
        location / {
                proxy_pass http://localhost:3000;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;
        }

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = example.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        listen 80;
        listen [::]:80;
        server_name example.com;
    return 404; # managed by Certbot

}
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda