title: Could not resolve hostname, ping works
body: <p>I have installed RasPi Raspbian, and now I can't do ssh or git clone, only local host names are being resolved it seems. And yet ping works:</p>
  
  <pre><code>pi ~ $ ssh test.com
  ssh: Could not resolve hostname test.com: Name or service not known
  
  pi ~ $ git clone gitosis@test.com:test.git
  Cloning into 'test'...
  ssh: Could not resolve hostname test.com: Name or service not known
  fatal: The remote end hung up unexpectedly
  
  pi ~ $ ping test.com
  PING test.com (174.36.85.72) 56(84) bytes of data.
  </code></pre>
  
  <p>I sort of worked around it for github by using <code>http://github.com</code> instead of <code>git://github.com</code>, but this is not normal and I would like to pinpoint the problem.</p>
  
  <p>Googling for similar issues but the solutions offered was either typo correction, or adding domains to hosts file.</p>