When trying to set up Let's Encrypt, I'm getting this error message.
And now I'm not able to login to DirectAdmin (IP.server:2222 redirects to https://vps1.domain.com, but is displaying an error).
Anyone who knows what going on?
I'm guessing it has something to do with my DNS-settings and hostname, so that's why I also attached dig / nslookup (although it might not have anything to do with this ofcourse).
[root@vps1 scripts]# ./letsencrypt.sh request vps1.domain.com 4096
nslookup domain.com
nslookup vps1.domain.com
********************************
dig domain.com
dig -x domain.com
dig vps1.domain.com
dig -x vps1.domain.com
And now I'm not able to login to DirectAdmin (IP.server:2222 redirects to https://vps1.domain.com, but is displaying an error).
Anyone who knows what going on?
I'm guessing it has something to do with my DNS-settings and hostname, so that's why I also attached dig / nslookup (although it might not have anything to do with this ofcourse).
[root@vps1 scripts]# ./letsencrypt.sh request vps1.domain.com 4096
Setting up certificate for a hostname: vps1.domain.com
Getting challenge for vps1.domain.com from acme-server...
User let's encrypt key has been found, but not registered. Registering...
Account registration error. Response: HTTP/1.1 100 Continue
Expires: Mon, 31 Oct 2016 21:02:26 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: application/problem+json
Content-Length: 127
Boulder-Request-Id: 1pO2UX2wvTiYLZGd4SL5yfT70udIJLpOJ7csyFYdMNk
Replay-Nonce: AOSWbOLy5JK7EDczTcGO55qZlM5ge8MK47ZBIKerxRQ
Expires: Mon, 31 Oct 2016 21:02:28 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 31 Oct 2016 21:02:28 GMT
Connection: close
{
"type": "urn:acme:error:invalidEmail",
"detail": "DNS problem: NXDOMAIN looking up MX for vps1.domain.com",
"status": 400
}.
nslookup domain.com
Server: IP.1
Address: IP.1#53
Non-authoritative answer:
Name: domain.com
Address: IP.server
nslookup vps1.domain.com
Server: IP.1
Address: IP.1#53
** server can't find vps1.domain.com: NXDOMAIN
********************************
dig domain.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6_8.2 <<>> domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24495
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;domain.com. IN A
;; ANSWER SECTION:
domain.com. 86400 IN A IP.server
;; Query time: 763 msec
;; SERVER: IP.1#53(IP.1)
;; WHEN: Mon Oct 31 17:14:59 2016
;; MSG SIZE rcvd: 40
dig -x domain.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6_8.2 <<>> -x domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2772
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;com.domain.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
in-addr.arpa. 3600 IN SOA b.in-addr-servers.arpa. nstld.iana.org. 2015074925 1800 900 604800 3600
;; Query time: 84 msec
;; SERVER: IP.1#53(IP.1)
;; WHEN: Mon Oct 31 17:15:13 2016
;; MSG SIZE rcvd: 105
dig vps1.domain.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6_8.2 <<>> vps1.domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 47164
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;vps1.domain.com. IN A
;; AUTHORITY SECTION:
domain.com. 86400 IN SOA ns0.xname.org. email.live.com. 2013112401 10800 3600 604800 10800
;; Query time: 3038 msec
;; SERVER: 178.21.112.12#53(178.21.112.12)
;; WHEN: Mon Oct 31 17:21:38 2016
;; MSG SIZE rcvd: 88
dig -x vps1.domain.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6_8.2 <<>> -x vps1.domain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 12661
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;com.domain.vps1.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
in-addr.arpa. 3545 IN SOA b.in-addr-servers.arpa. nstld.iana.org. 2015074925 1800 900 604800 3600
;; Query time: 26 msec
;; SERVER: IP.1#53(IP.1)
;; WHEN: Mon Oct 31 17:16:07 2016
;; MSG SIZE rcvd: 110