mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 21:55:57 +08:00
17 lines
346 B
Go
17 lines
346 B
Go
package rejectif
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/StackExchange/dnscontrol/v4/models"
|
|
)
|
|
|
|
// Keep these in alphabetical order.
|
|
|
|
// NaptrHasEmptyTarget detects NAPTR records with empty targets.
|
|
func NaptrHasEmptyTarget(rc *models.RecordConfig) error {
|
|
if rc.GetTargetField() == "" {
|
|
return errors.New("naptr has empty target")
|
|
}
|
|
return nil
|
|
}
|