mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-11 08:50:39 +08:00
17 lines
340 B
Go
17 lines
340 B
Go
package rejectif
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"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 errors.New("srv has null target")
|
|
}
|
|
return nil
|
|
}
|