title: Python attribute error: type object '_socketobject' has no attribute 'gethostbyname'
body: <p>I am trying to do this in my program:</p>
  
  <pre><code>dest = socket.gethostbyname(host)
  </code></pre>
  
  <p>I have included the line:</p>
  
  <pre><code>from socket import * 
  </code></pre>
  
  <p>in the beginning of the file.</p>
  
  <p>I am getting this error:</p>
  
  <blockquote>
    <p>AttributeError: type object
    '_socketobject' has no attribute
    'gethostbyname'</p>
  </blockquote>
  
  <p>I am running Vista 64bit. Could there be  a problem with my OS? I have turned down my firewall and everything.</p>