Rename hosts from targets to localhost