Changed from checking for duplicate IPs, which is OK to checking for hostname, which is not.