dnscontrol/pkg/rejectif/srv.go

18 lines
337 B
Go
Raw Normal View History

package rejectif
import (
"fmt"
2023-05-21 01:21:45 +08:00
"github.com/StackExchange/dnscontrol/v4/models"
)
// Keep these in alphabetical order.
// SrvHasNullTarget detects SRV records that has a null target.
func SrvHasNullTarget(rc *models.RecordConfig) error {
if rc.GetTargetField() == "." {
return fmt.Errorf("srv has null target")
}
return nil
}