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:
4
main.go
4
main.go
@ -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()
|
||||
|
Reference in New Issue
Block a user