title: Get IP address of url in python?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2805231/how-can-i-do-dns-lookups-in-python-including-referring-to-etc-hosts">How can I do DNS lookups in Python, including referring to /etc/hosts?</a>  </p>
  </blockquote>
  
  
  
  <p>Im using Python 2.7 and im creating a iptracer with an online API.</p>
  
  <p>And i want the user to have the option to type e.g google.com, <a href="http://google.com" rel="noreferrer">http://google.com</a> or www.google.com and then get the ip address of that and add the ip to a variable.</p>
  
  <p>Is it any links or other help anyone can give me?</p>
  
  <p>-stian</p>