I'm trying to run some python code that looks to see if DNS resolution is working. When it works this is great. But when it cant resolve it stoops the script from running and bombs out with this error.