Skip to content

Commit b636118

Browse files
committed
Remove ' enclosure for srv records.
1 parent 5bcdf37 commit b636118

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/v-add-dns-record

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ fi
4848
dvalue=${dvalue//\"/}
4949

5050
if [[ "$dvalue" =~ [\;[:space:]] ]]; then
51-
dvalue='"'"$dvalue"'"'
51+
# Exclude SRV records for ' enclosure
52+
if [ "$rtype" != 'SRV' ]; then
53+
dvalue='"'"$dvalue"'"'
54+
fi
5255
fi
5356

5457
# Additional argument formatting

0 commit comments

Comments
 (0)