diff --git a/dnsapi/dns_aws.sh b/dnsapi/dns_aws.sh
index 15bf7b14..2c58754d 100644
--- a/dnsapi/dns_aws.sh
+++ b/dnsapi/dns_aws.sh
@@ -72,7 +72,7 @@ _get_root() {
fi
if _contains "$response" "$h."; then
- hostedzone="$(echo "$response" | _egrep_o ".*$h..*")"
+ hostedzone="$(echo "$response" | sed 's//\n&/g' | _egrep_o ".*$h..*")"
_debug hostedzone "$hostedzone"
if [ -z "$hostedzone" ]; then
_err "Error, can not get hostedzone."