Permalink
Browse files

IDN support for MX and CNAME record. Fixes #108

  • Loading branch information...
serghey-rodin committed Feb 17, 2014
1 parent 2d4cdb3 commit c3e89977a35ca4b16eb14b2a61f8bf13bc9df82e
Showing with 4 additions and 0 deletions.
  1. +4 −0 func/domain.sh
View
@@ -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

0 comments on commit c3e8997

Please sign in to comment.