use poll rather than select in dns lookups (also clock_gettime)