title: getaddrinfo: Name or service not known with solr sunspot
body: <p>I'm attempting to run solr and sunspot with rails 3.1, but I keep getting the error</p>
  
  <pre>
  getaddrinfo: Name or service not known
  </pre>
  
  <p>my controller is fairly basic</p>
  
  <pre>
    def index
          @food_names = FoodName.search do 
              keywords(params[:term])
          end
    end
  </pre>
  
  <p>I'm still not quite sure about what is going on here. do I have to start a separate solr service? </p>
  
  <p>When I run rake sunspot:solr:run, I get a </p>
  
  <pre>
  WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
      at /home/pete/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
  WARNING: Global access to Rake DSL methods is deprecated.  Please include
      ...  Rake::DSL into classes and modules which use the Rake DSL methods.
  WARNING: DSL method Kitchon::Application#task called at /home/pete/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.0.0/lib/rails/application.rb:214:in `initialize_tasks'
  WARNING: 'task :t, arg, :needs => [deps]' is deprecated.  Please use 'task :t, [args] => [deps]' instead.
      at /home/pete/.rvm/gems/ruby-1.9.2-p290/gems/sunspot_rails-1.2.0/lib/sunspot/rails/tasks.rb:41:in `block in '
  rake aborted!
  Server is already running with PID 4012
  
  Tasks: TOP => sunspot:solr:start
  (See full trace by running task with --trace)
  
  </pre>
  
  <p>which is a bit disconcerting, but as the output says, the server is already running, so I think it is working.</p>
  
  <p>Any suggestions on what I may be doing wrong, or how to fix this?</p>