add hosts and change node name from ip addr to hostname