Hello,
I am trying to set up a certificate for 2 vhosts on the same VM.
Since I'm not sure how to explain in clearly I'm gonna explain it thoroughly.
I have 2 domains (larez.fr and rez-gif.supelec.fr) stricly equivalent, my VM name is poe (accessible with both domains). I want to set up 2 website named agendav and davical (with larez.fr and rez-gif.supelec.fr). When I try to create the certificate with letsencrypt-auto certonly I get the following error for the domains in larez.fr:
Failed authorization procedure. agendav.larez.fr (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for agendav.larez.fr, davical.larez.fr (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: DNS problem: NXDOMAIN looking up A for davical.larez.fr
IMPORTANT NOTES: - The following errors were reported by the server:
Domain: agendav.larez.fr Type: connection Detail: DNS problem: NXDOMAIN looking up A for agendav.larez.fr
Domain: davical.larez.fr Type: connection Detail: DNS problem: NXDOMAIN looking up A for davical.larez.fr
When I do a dig agendav.larez.fr A from a server outside of this network I get the following:
; <<>> DiG 9.9.5-9ubuntu0.5-Ubuntu <<>> agendav.larez.fr A ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40826 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 3
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;agendav.larez.fr. IN A
;; ANSWER SECTION: agendav.larez.fr. 84725 IN CNAME poe.rez-gif.supelec.fr. poe.rez-gif.supelec.fr. 84719 IN A 160.228.152.124
;; AUTHORITY SECTION: rez-gif.supelec.fr. 84696 IN NS ns2.rez-gif.supelec.fr. rez-gif.supelec.fr. 84696 IN NS ns.rez-gif.supelec.fr.
;; ADDITIONAL SECTION: ns.rez-gif.supelec.fr. 84696 IN A 160.228.152.1 ns2.rez-gif.supelec.fr. 84696 IN A 160.228.152.66
;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Wed Feb 17 22:41:16 CET 2016 ;; MSG SIZE rcvd: 162
For davical.larez.fr I have a similar answer.
I am not a expert in sysadmin at all so I'm not sure if that's enough, too much or whatever ^^
Thanks if you can help me!