title: Why hostname FQDN is not set properly on Digital Ocean?
body: <p>I've observed this issue on Ubuntu 16.04 droplets, but I suppose it happens on other Debian based droplets. More explanations below.</p>
  
  <p>After creating a brand new instance, I've observed that <code>hostname --fqdn</code> does not return the FQDN (Full Qualified Domain Name) as I would expect, but only returns the hostname, without the domain name appended to it.</p>
  
  <pre><code>$ hostname
  mydroplet
  $ hostname --fqdn
  mydroplet
  </code></pre>
  
  <p>I would expect to see something like this:</p>
  
  <pre><code>$ hostname --fqdn
  mydroplet.example.com
  </code></pre>
  
  <p>This is a potentially serious problem, since many services depend on the FQDN for working properly.</p>
  
  <p>How this problem can be fixed?</p>