IDN support for MX and CNAME record. Fixes #108

This commit is contained in:
Serghey Rodin
2014-02-17 21:50:12 +02:00
parent 2d4cdb3f2a
commit c3e89977a3

View File

@@ -195,6 +195,10 @@ update_domain_zone() {
done
RECORD=$(idn --quiet -a -t "$RECORD")
if [ "$TYPE" = 'CNAME' ] || [ "$TYPE" = 'MX' ]; then
VALUE=$(idn --quiet -a -t "$VALUE")
fi
if [ "$SUSPENDED" != 'yes' ]; then
eval echo -e "\"$fields\""|sed "s/%quote%/'/g" >> $conf
fi