Skip to content

Commit fed8088

Browse files
authored
Fix v-add-dns-record when adding TLSA records
Hestia encloses value of TLSA records with double quotes and Bind doesn't allow it, giving a SERVFAIL when trying to query any type of record of that zone.
1 parent 54f4210 commit fed8088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-add-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fi
7171
if [ "$rtype" != "CAA" ]; then
7272
dvalue=${dvalue//\"/}
7373
# Add support for DS key
74-
if [ "$rtype" != "DNSKEY" ] && [ "$rtype" != "DS" ]; then
74+
if [ "$rtype" != "DNSKEY" ] && [ "$rtype" != "DS" ] && [ "$rtype" != "TLSA" ]; then
7575
if [ "$rtype" != 'SRV' ] && [[ "$dvalue" =~ [\;[:space:]] ]]; then
7676
dvalue='"'"$dvalue"'"'
7777
fi

0 commit comments

Comments
 (0)