diff --git a/rootfs/usr/local/etc/docker/init.d/02-named.sh b/rootfs/usr/local/etc/docker/init.d/02-named.sh index 97bcf90..6edb0a1 100755 --- a/rootfs/usr/local/etc/docker/init.d/02-named.sh +++ b/rootfs/usr/local/etc/docker/init.d/02-named.sh @@ -367,7 +367,8 @@ EOF domain_name="$(basename "${dns_file%.*}")" main_server="$(grep -sh 'masters ' "$dns_file" | sed 's/^[ \t]*//' || echo "masters { $DNS_REMOTE_SERVER:-$DNS_SERVER_PRIMARY"); };" if [ -n "$domain_name" ]; then - cat <>"$TMP_DIR/$file_name" + echo $domain_name + cat <"$TMP_DIR/$file_name" # ********** begin $domain_name ********** zone "$domain_name" { type slave;