diff --git a/scripts/certbot-hook-quovadis.sh b/scripts/certbot-hook-quovadis.sh
index e462ed3b8991b730c4adfd603785063de5a416d1..b385badaac52c4fcfa036b6553e256c637e66ba5 100755
--- a/scripts/certbot-hook-quovadis.sh
+++ b/scripts/certbot-hook-quovadis.sh
@@ -47,6 +47,10 @@ fi
 # Strip only the top domain to get the zone id
 DOMAIN=$(expr match "$CERTBOT_DOMAIN" '\(.*\)\.ucc\..*')
 
+if [ -z "${DOMAIN}" ]; then
+        DOMAIN="apex"
+fi
+
 BASE_API="${BASE_API:-https://quovadis.ucc.asn.au/quovadis}"
 
 # Create TXT record