Kaynağa Gözat

Cname + @ records caused bind failing to load

Jaap Marcus 3 yıl önce
ebeveyn
işleme
dd6cce0583
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      bin/v-add-dns-record

+ 4 - 0
bin/v-add-dns-record

@@ -73,6 +73,10 @@ if [ "$rtype" != "CAA" ]; then
     fi
 fi
 
+if [ $record = "@" ] && [ $rtype = "CNAME" ]; then
+    check_result $E_INVALID "CNAME on root is not allowed"
+fi
+
 # Additional argument formatting
 format_domain
 format_domain_idn