Skip to content

Commit

Permalink
IDN support for MX and CNAME record. Fixes #108
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Feb 17, 2014
1 parent 2d4cdb3 commit c3e8997
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions func/domain.sh
Expand Up @@ -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
Expand Down

0 comments on commit c3e8997

Please sign in to comment.