Replaced dig DNS lookups with Net::DNS calls