I was just able to solve this issue on my CentOS 7 server. The only place this was happening for me was on domains where DNS was hosted on the same server. Basically, the AutoSSL check is trying to go out and validate the authoritative DNS server DCV records for the domains. Because I have NAT'ed IP addresses, when it looks up the authoritative DNS server it gets the external IP address and does not get the right answer because there is no hairpin NAT in place on the firewall. My Firewall seems to not support a hairpin NAT configuration.
So, I was able to add another interface to the box via VMware. My primary interface shows up as ens192, now there is a second one as ens224.
in /etc/sysconfig/network-scripts there is a config script for ens192 that I copied over to ens224 and edited. I changed the NAME, DEVICE, IPADDR, GATEWAY, DNS1 and DNS2 settings.
NAME should be the interface name
DEVICE should be the interface name
IPADDR should be the external IP address of your DNS server (obfuscated below)
GATEWAY should be blank
DNS1 should be blank
DNS2 should be blank
Code:
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="ens224"
UUID="5bc98952-958f-4d14-9594-0ef7ea44ead4"
DEVICE="ens224"
ONBOOT="yes"
IPADDR="110.110.110.110"
PREFIX="24"
GATEWAY=""
DNS1=""
DNS2=""
IPV6_PRIVACY="no"
You will then need to do a
Code:
[root]# service restart network
[root]# service restart ipaliases
that will restart the services. Verify that the interfaces are up with
This creates another interface so that when AutoSSL resolves my DNS server and gets the external IP address, this interface which is local will now answer for it and it will still connect to the DNS service on the box. Basically, I'm creating a hairpin NAT internal on the box.
After doing this, running AutoSSL renewed everything with no issues. You could create a more of these interfaces for any other DNS server addresses you have hosted as well. Hope that helps someone else!