checking for duplicate hostnames