title: Vagrant hostname that differs from machine name
body: <p>It seems that no matter what I set as the <code>vm.hostname</code> value, running the command <code>hostname</code> yields the vagrant machine's name instead of the hostname I provided.</p>
  
  <p>So, given this setup:</p>
  
  <pre class="lang-ruby prettyprint-override"><code>Vagrant.configure(2) do |config|
    config.vm.define "site1" do |s1_conf|
      s1_conf.vm.box = 'ubuntu/trusty64'
      s1_conf.vm.hostname = 'site1.dev'
    end
    config.vm.define "site2" do |s2_conf|
      s2_conf.vm.box = 'ubuntu/trusty64'
      s1_conf.vm.hostname = 'site2.dev'
    end
  end
  </code></pre>
  
  <p>If I do <code>vagrant ssh site2</code> and then <code>hostname</code>, I'll get "site2" <strong>not</strong> "site2.dev". Why? </p>
  
  <p>Is my understanding of how this works wrong? Or is it supposed to work this way, and I have something else going on in my code?</p>