1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

allowing metadata to force remove all nameservers

This commit is contained in:
Craig Peterson
2017-05-23 13:38:14 -04:00
parent f1a0d65198
commit 20253130cf
2 changed files with 2 additions and 50 deletions

View File

@ -207,8 +207,8 @@ func main() {
if !ok {
log.Fatalf("Registrar %s not declared.", reg)
}
if len(domain.Nameservers) == 0 {
//fmt.Printf("No nameservers declared; skipping registrar.\n")
if len(domain.Nameservers) == 0 && domain.Metadata["no_ns"] != "true" {
fmt.Printf("No nameservers declared; skipping registrar. Add {no_ns:'true'} to force.\n")
continue
}
dc, err := domain.Copy()