What about if ip is not an actual ip but a host name (e.g. "orion.lab.fi-ware.eu")? Could that case happen (I'm not completely sure, but I think that it could, as this `ip` comes at the end from the string in the reference field in the DB for csub/casub documents)? What would happen in that case with the isIPv6() function?