title: SolrClient::query() Solr HTTP Error : 'Couldn't resolve host name'
body: <p><code>Solr</code> using with <code>Yii Framework</code> and getting this error:</p>
  
  <p><code>SolrClient::query() [&lt;a href='solrclient.query'&gt;solrclient.query&lt;/a&gt;]: Solr HTTP Error: 
  'Couldn't resolve host name'</code></p>
  
  <p>I have defined hostname: localhost:81 port: 8983</p>
  
  <p>Tried many ways on using localhost but not getting right solution.</p>