Using nslookup instead of ping to speed this up considerably