mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
GetNameservers is inconsistent across providers (#655)
* 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
This commit is contained in:
13
models/tdwarn.go
Normal file
13
models/tdwarn.go
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user