From 1ed818878232c96d97a3ae4e687a018ddf6bef9b Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Thu, 29 Sep 2016 23:43:59 +0300 Subject: [PATCH] =?UTF-8?q?fix=20SOA=20update=20from=20L=C3=B3nyai=20Gerge?= =?UTF-8?q?ly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func/domain.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/func/domain.sh b/func/domain.sh index a67e487b..c5736f2a 100644 --- a/func/domain.sh +++ b/func/domain.sh @@ -360,6 +360,11 @@ update_domain_zone() { if [ -z "$SERIAL" ]; then SERIAL=$(date +'%Y%m%d01') fi + if [[ "$domain" = *[![:ascii:]]* ]]; then + domain_idn=$(idn -t --quiet -a $domain) + else + domain_idn=$domain + fi zn_conf="$HOMEDIR/$user/conf/dns/$domain.db" echo "\$TTL $TTL @ IN SOA $SOA. root.$domain_idn. (