title: Getting the ip address of an ftp server in python
body: <p>I've connected to a database using <code>ftplib</code> as shown below. </p>
  
  <pre><code>import ftplib
  sitename = 'ftp.ensembl.org'
  connection = ftplib.FTP(sitename)
  connection.login()
  </code></pre>
  
  <p>But because I want to use <code>ssh</code> with an argument of user@host, I believe I need the ip address of the server instead of the url of the ftp site. Is there any code to find and store the ip address of an ftp server within <code>ftplib</code>?</p>