title: Vagrant: do not map hostname to loopback address in /etc/hosts
body: <p>I am using Vagrant (<strong>v1.7.2</strong>) to provision Linux (Fedora 22) hosts, and the <a href="https://github.com/smdahlen/vagrant-hostmanager" rel="nofollow">vagrant-hostmanager</a> plugin (<strong>v1.6.1</strong>)
  to write <code>/etc/hosts</code> so that hosts can access each other.</p>
  
  <p>My <code>Vagrantfile</code>:</p>
  
  <pre><code>Vagrant.configure(2) do |config|
  
    config.vm.box = "workshop"
  
    config.hostmanager.enabled = true
    config.hostmanager.include_offline = true
  
    config.vm.define "server" do |server|
      server.vm.network "private_network", ip: "192.168.33.10"
      server.vm.hostname = "server.local"
    end
  
    config.vm.define "client" do |client|
      client.vm.network "private_network", ip: "192.168.33.20"
      client.vm.hostname = "client.local"
    end
  
  end
  </code></pre>
  
  <p>When I <code>vagrant up</code>, the <code>server</code> VM has the following <code>/etc/hosts</code>:</p>
  
  <pre><code>127.0.0.1 server.ipademo.local server
  ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
  
  ## vagrant-hostmanager-start
  192.168.33.10   server.ipademo.local
  
  192.168.33.20   client.ipademo.local
  
  ## vagrant-hostmanager-end
  </code></pre>
  
  <p>(For VM <code>client</code>, substitute <code>s/server/client/</code> on the <em>first line only</em>.)</p>
  
  <p>Because Vagrant >= 1.5.0 runs the vagrant-hostmanager plugin before provisioning, I also tried running hostmanager <em>during</em> provisions by changing the <code>Vagrantfile</code> to:</p>
  
  <pre><code>  config.hostmanager.enabled = false
    config.hostmanager.include_offline = true
    config.vm.provision :hostmanager
  </code></pre>
  
  <p>This had the same outcome.</p>
  
  <h2>Problem description</h2>
  
  <p>The <code>127.0.0.1 &lt;fqdn&gt; &lt;shortname&gt;</code> line conflicts with the information added by vagrant-hostmanager.  I need to suppress the association of the hostname to the loopback address, so that on every VM the hostname resolves to the private network address, as added by <em>vagrant-hostmanager</em>.</p>
  
  <p>How can I accomplish this?</p>