mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fix SOA update from Lónyai Gergely
This commit is contained in:
parent
fc2ecb22b7
commit
1ed8188782
1 changed files with 5 additions and 0 deletions
|
@ -360,6 +360,11 @@ update_domain_zone() {
|
||||||
if [ -z "$SERIAL" ]; then
|
if [ -z "$SERIAL" ]; then
|
||||||
SERIAL=$(date +'%Y%m%d01')
|
SERIAL=$(date +'%Y%m%d01')
|
||||||
fi
|
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"
|
zn_conf="$HOMEDIR/$user/conf/dns/$domain.db"
|
||||||
echo "\$TTL $TTL
|
echo "\$TTL $TTL
|
||||||
@ IN SOA $SOA. root.$domain_idn. (
|
@ IN SOA $SOA. root.$domain_idn. (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue