Handle exceptions when resolving A records of the nameservers.

Not the prettiest method in the world. It's really "best effort"
for some definition of "best."