Skip to content

Commit ebe3f40

Browse files
authored
Fix: Do not add . on DNSKEY record (hestiacp#3458)
1 parent 4df891a commit ebe3f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-change-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ if [ "$rtype" != 'MX' ] && [ "$rtype" != 'SRV' ]; then
8686
fi
8787

8888
# Add trailing dot at the end of NS/CNAME/MX/PTR/SRV record
89-
if [[ $rtype =~ NS|CNAME|MX|PTR|SRV ]]; then
89+
if [[ $rtype =~ ^NS|CNAME|MX|PTR|SRV ]]; then
9090
trailing_dot=$(echo "$dvalue" | grep "\.$")
9191
if [ -z "$trailing_dot" ]; then
9292
dvalue="$dvalue."

0 commit comments

Comments
 (0)