diff --git a/cloudformation/ad/ad-integration.yaml b/cloudformation/ad/ad-integration.yaml index 0f07f21e8c..09538dc975 100644 --- a/cloudformation/ad/ad-integration.yaml +++ b/cloudformation/ad/ad-integration.yaml @@ -429,6 +429,10 @@ Resources: max_attempts=5 until [ $attempt -ge $max_attempts ]; do attempt=$((attempt+1)) + echo "[DEBUG] Content of /etc/resolv.conf is:" + cat /etc/resolv.conf + echo "[DEBUG] Resolving ${DirectoryDomain} ..." + dig ${DirectoryDomain} echo "Joining domain (attempt $attempt/$max_attempts) ..." echo "$ADMIN_PW" | sudo realm join -U "${Admin}" "${DirectoryDomain}" && echo "Domain joined" && break sleep 10