tests to avoid failed tests when Net::DNS is not present. (cherry picked from commit 8b1b809ab4)
8b1b809ab4