dnscontrol/pkg/rejectif/ns.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

18 lines
405 B
Go

package rejectif
import (
"errors"
"github.com/StackExchange/dnscontrol/v4/models"
)
// Keep these in alphabetical order.
// NsAtApex detects NS records at the apex/root domain.
// Use this when a provider doesn't support custom NS records at the apex.
func NsAtApex(rc *models.RecordConfig) error {
if rc.GetLabel() == "" {
return errors.New("NS records not supported at apex")
}
return nil
}