get-ip-addresses: reverse order of IP address and hostname