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