Looks like zone_names is only needed when it doesn't receive a ip, so the discovery should only be called inside of:
```
if len(sys.argv) < 2:
```