added sleep before each dns call