1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
2022-09-07 14:08:06 -04:00

18 lines
337 B
Go

package rejectif
import (
"fmt"
"github.com/StackExchange/dnscontrol/v3/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
}