added ns query call to get the IP from hosts