IDN support for MX and CNAME record. Fixes #108

This commit is contained in:
Serghey Rodin 2014-02-17 21:50:12 +02:00
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