mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44: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
|
||||
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. (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue