mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
31723ad146
* stash * Use rejectif idea * rename * wip! * Convert old systems to new * fixup! * fix typo
18 lines
395 B
Go
18 lines
395 B
Go
package rejectif
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"github.com/StackExchange/dnscontrol/v3/models"
|
|
)
|
|
|
|
// Keep these in alphabetical order.
|
|
|
|
// CaaTargetHasSemicolon audits CAA records for issues that contain semicolons.
|
|
func CaaTargetHasSemicolon(rc *models.RecordConfig) error {
|
|
if strings.Contains(rc.GetTargetField(), ";") {
|
|
return fmt.Errorf("caa target contains semicolon")
|
|
}
|
|
return nil
|
|
}
|