Since the host names are resolving already for ssh, there is no need to remotely connect or ping the systems (that will only disclose currently alive servers, at best).
A query with nslookup as mentioned in post #2 or with dig, would be sufficient.
Here's an example using dig
Place all the server names in hostsfile.txt
If using the hostname gets you connected, why do you need the IP address? I'd always steer people away from these as if the network requires changes (physical move, company merger etc.) you don't want to have to recode it all over the place if a DNS server can be a central reference where a single change will implement for all.