Merge pull request #812 from pcfreak30/hotfix/811

Automatically quote DNS records that have special characters
This commit is contained in:
Serghey Rodin 2016-08-29 16:55:12 +03:00 committed by GitHub
commit ce1be73afa

View file

@ -49,6 +49,12 @@ if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
fi
fi
dvalue=${dvalue//\"/}
if [[ "dvalue" =~ [^\;\s] ]]; then
dvalue='"'"$dvalue"'"'
fi
#----------------------------------------------------------#
# Verifications #