Split hostnames and ip