Batch get hostname from ip. xxx to the IP address you want to ping): ping -a xxx.