mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 09:59:59 +08:00
3f68215841
* Warn if GetNameservers returns FQDN+dot strings * Simplify logic that covers for the inconsistency * Fix azuredns, gcloud, bind, route53 * Clean up cloudflare, digitalocean, dnsimple, gandi_v5, namedotcom
13 lines
284 B
Go
13 lines
284 B
Go
package models
|
|
|
|
import "fmt"
|
|
|
|
var dotwarned = map[string]bool{}
|
|
|
|
func WarnNameserverDot(p, w string) {
|
|
if dotwarned[p] {
|
|
return
|
|
}
|
|
fmt.Printf("Warning: provider %s could be improved. See https://github.com/StackExchange/dnscontrol/issues/491 (%s)\n", p, w)
|
|
dotwarned[p] = true
|
|
}
|