Query dns records from a list containing hostnames