We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b87246d + 50f08b7 commit b370cbfCopy full SHA for b370cbf
bin/v-add-dns-record
@@ -109,6 +109,16 @@ if [ ! -z "$DNS_CLUSTER" ]; then
109
fi
110
111
112
+# remove trailing dot at the end of NS/CNAME/MX/PTR/SRV record
113
+
114
+if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
115
+ trailing_dot2=$(echo $record | grep "\.$")
116
+ if [ ! -z $trailing_dot2 ]; then
117
+ record=$(echo "${record::-1}")
118
+ fi
119
+fi
120
121
122
123
#----------------------------------------------------------#
124
# Vesta #
0 commit comments