1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

NEW PROVIDER: Gcore DNS (#1816)

This commit is contained in:
Yuhui Xu
2022-11-15 11:40:08 -06:00
committed by GitHub
parent 1705906be5
commit 35818299c0
12 changed files with 470 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
package gcore
import (
"github.com/StackExchange/dnscontrol/v3/models"
"github.com/StackExchange/dnscontrol/v3/pkg/rejectif"
)
// AuditRecords returns a list of errors corresponding to the records
// that aren't supported by this provider. If all records are
// supported, an empty list is returned.
func AuditRecords(records []*models.RecordConfig) []error {
a := rejectif.Auditor{}
a.Add("SRV", rejectif.SrvHasNullTarget)
return a.Audit(records)
}