Test to see if one or more nameservers are able to resolve a particular $domain within a set $timeoutsec; This is a more robust version of https://gist.github.com/sahal/317bb8dca6719776e10f