check for invalid domain names