Can't use certbot on sub domains

Hi,
My domain is: oxodao.fr

I ran this command: certbot certonly -a webroot --webroot-path=/home/oxodao/www -d oxodao.fr -d www.oxodao.fr --webroot-path=/home/nextcloud/www -d nc.oxodao.fr -d www.nc.oxodao.fr

It produced this output: Failed authorization procedure. www.nc.oxodao.fr (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for www.nc.oxodao.fr

My operating system is (include version): Debian 8

My web server is (include version): nginx 1.6.2

My hosting provider, if applicable, is: OVH VPSes

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

I did have let’s working for maybe a year though I decided to fully reinstall my machine.
I did not change any A records or nothing related to domain name.
This was working correctly before reinstall, nc.oxodao.fr is working though I can’t get LE on it…

Here are my config for nginx:
Default (oxodao.fr) : https://pastebin.com/sbJwm3Hj
Nextcloud (nc.oxodao.fr) : https://pastebin.com/c4RYERtu

The SSL generated works on oxodao.fr but not on nc.oxodao.fr

It was working right before reinstalling…
Thanks in advance

Well, there isn’t an IP address for www.nc.oxodao.fr so the error makes sense…

I feel so dumb…
Anyway, thank you :slight_smile:

So either add an IP address to that specific hostname or don’t use it at all, it’s all up to you :wink:

1 Like

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