Просмотр исходного кода

Fix: Do not add . on DNSKEY record (#3458)

Jaap Marcus 2 лет назад
Родитель
Сommit
ebe3f4012d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-change-dns-record

+ 1 - 1
bin/v-change-dns-record

@@ -86,7 +86,7 @@ if [ "$rtype" != 'MX' ] && [ "$rtype" != 'SRV' ]; then
 fi
 fi
 
 
 # Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
 # Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
-if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
+if [[ $rtype =~ ^NS|CNAME|MX|PTR|SRV ]]; then
 	trailing_dot=$(echo "$dvalue" | grep "\.$")
 	trailing_dot=$(echo "$dvalue" | grep "\.$")
 	if [ -z "$trailing_dot" ]; then
 	if [ -z "$trailing_dot" ]; then
 		dvalue="$dvalue."
 		dvalue="$dvalue."