diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index <HASH>..<HASH> 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -623,7 +623,11 @@ def fix_sf_url(url):
 
 def get_sf_ip(_mirrors=[]):
     if not _mirrors:
-        _mirrors[:] = socket.gethostbyname_ex('dl.sourceforge.net')[-1]
+        try:
+            _mirrors[:] = socket.gethostbyname_ex('dl.sourceforge.net')[-1]
+        except socket.error:
+            # DNS-bl0ck1n9 f1r3w4llz sUx0rs!
+            _mirrors[:] = ['dl.sourceforge.net']
     return random.choice(_mirrors)
 
 
@@ -650,7 +654,3 @@ def get_sf_ip(_mirrors=[]):
 
 
 
-
-
-
-
Fall back to a reasonable default Sourceforge address if the machine is
unable to obtain the mirror IP list via DNS.

--HG--
branch : setuptools
extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I>