Convert a list of DNS names to IPs