Backport of DNS resolution patch for Xrootd client.

@bbockelm:

"Previously, we tried to update to 3.3.3, then to 4.0.3, then hit
a ROOT issue.  Meanwhile, Ops didn't get the fix they were waiting
for.  So, while we wait on ROOT, here's the originally-requested
backport.

Original patch here:
https://github.com/xrootd/xrootd/commit/6184cd0f24145ebae66bc782d929444d19700fdc"

Close #1003.