title: error connecting to host: could not connect to server: server selection error: server selection timeout current topology: Type: Single Servers
body: <p>I need to import a CSV file to mongoDB unfortunately i'm having below error:</p>
  
  <pre><code>    error connecting to host: could not connect to server: server selection error: server selection timeout
      current topology: Type: Single
      Servers:
      Addr: eaderline:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp: lookup eaderline: no such host
  </code></pre>
  
  <p>my import string looks like that:</p>
  
  <pre><code>mongoimport --host Test-shard-0/test-shard-00-00-gceee.mongodb.net:27017,test-shard-00-01-gceee.mongodb.net:27017,test-shard-00-02-gceee.mongodb.net:27017 --ssl --username &lt;username&gt; --password &lt;password&gt; --authenticationDatabase admin --db EngineeringProject --collection FirstName --type csv -file "C:\Users\Ja\Desktop\INFA\ProjektInzynierski\DaneDBzMC\imiona.csv" -headerline
  </code></pre>
  
  <p>The funny part about this error is that, i was able to import data to mongodb a 2 weeks ago by similar string which looks like this one below, and today it's imposible, why?</p>
  
  <pre><code>mongoimport --host Test-shard-0/test-shard-00-00-gceee.mongodb.net:27017,test-shard-00-01-gceee.mongodb.net:27017,test-shard-00-02-gceee.mongodb.net:27017 --ssl --username &lt;username&gt; --password &lt;password&gt; --authenticationDatabase admin --db Test2 --collection COL_First --type csv -file "C:\Users\Ja\Desktop\Przykladowy\Mapy\liczba.csv" -headerline
  </code></pre>
  
  <p>Does anyone see any mistake?</p>
  
  <p>I have checked the port 27017 on my machine is free, maybe there is something going on on the cluster side?
  Is there a way to launch an empty import, just for checking the connection?</p>