mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 09:59:59 +08:00
19 lines
373 B
Go
19 lines
373 B
Go
|
package rejectif
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/StackExchange/dnscontrol/v3/models"
|
||
|
)
|
||
|
|
||
|
// Keep these in alphabetical order.
|
||
|
|
||
|
// MxNull detects MX records that are a "null MX".
|
||
|
// This is needed by providers that don't support RFC 7505.
|
||
|
func MxNull(rc *models.RecordConfig) error {
|
||
|
if rc.GetTargetField() == "." {
|
||
|
return fmt.Errorf("mx has null target")
|
||
|
}
|
||
|
return nil
|
||
|
}
|