Fixed DNS and use urllib2 for http.