mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-12 09:20:32 +08:00
18 lines
405 B
Go
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
|
|
}
|