title: mysql hostname does not work
body: <p>Have a question that I can't seem to find an answer for. I am trying to connect to a remote database. I type in the following to my shell:</p>
  
  <pre><code>mysql -u test -h host.name.com -p
  </code></pre>
  
  <p>mysql asks for my password and then outputs the following:</p>
  
  <blockquote>
    <p>ERROR 2005 (HY000): Unknown MySQL server host 'host.name.com' (1)</p>
  </blockquote>
  
  <p>but when I try with the ip address for that hostname  </p>
  
  <pre><code>mysql -u test -h xxx.xxx.xxx.xx -p 
  </code></pre>
  
  <p>it works fine</p>