Skip to content

Commit f3a3c41

Browse files
Merge pull request hestiacp#772 from huloza/patch-1
Add TLSA Record Type to DNS Manager
2 parents 14d346e + 9b7777d commit f3a3c41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ is_dbuser_format_valid() {
590590

591591
# DNS record type validator
592592
is_dns_type_format_valid() {
593-
known_dnstype='A,AAAA,NS,CNAME,MX,TXT,SRV,DNSKEY,KEY,IPSECKEY,PTR,SPF'
593+
known_dnstype='A,AAAA,NS,CNAME,MX,TXT,SRV,DNSKEY,KEY,IPSECKEY,PTR,SPF,TLSA'
594594
if [ -z "$(echo $known_dnstype |grep -w $1)" ]; then
595595
check_result $E_INVALID "invalid dns record type format :: $1"
596596
fi

web/templates/admin/add_dns_rec.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
<option value="IPSECKEY" <?php if ($v_type == 'IPSECKEY') echo selected; ?>>IPSECKEY</option>
8181
<option value="PTR" <?php if ($v_type == 'PTR') echo selected; ?>>PTR</option>
8282
<option value="SPF" <?php if ($v_type == 'SPF') echo selected; ?>>SPF</option>
83+
<option value="TLSA" <?php if ($v_type == 'TLSA') echo selected; ?>>TLSA</option>
8384
</select>
8485
</td>
8586
</tr>

0 commit comments

Comments
 (0)