title: AWS error - sudo: unable to resolve host ip-10-0-xx-xx
body: <p>I launched a new <code>aws</code> instance. My private ip is <code>ip-10-0-xx-xx</code> as per amazon console. Everytime when I do a sudo command, I get the following error </p>
  
  <pre><code>sudo: unable to resolve host ip-10-0-xx-xx
  </code></pre>
  
  <p>How can I rectify this error? </p>