Skip to content

Commit dd6cce0

Browse files
committed
Cname + @ records caused bind failing to load
1 parent 0642453 commit dd6cce0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/v-add-dns-record

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ if [ "$rtype" != "CAA" ]; then
7373
fi
7474
fi
7575

76+
if [ $record = "@" ] && [ $rtype = "CNAME" ]; then
77+
check_result $E_INVALID "CNAME on root is not allowed"
78+
fi
79+
7680
# Additional argument formatting
7781
format_domain
7882
format_domain_idn

0 commit comments

Comments
 (0)