[Bug 7036] ldapsearch should attempt DNS-based fallback if possible