dnscontrol/pkg/rejectif/naptr.go
Alex Trull ca64774004
Joker: Implement DNS Provider (#3661)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
2025-08-04 16:37:20 -04:00

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
}