title: Vagrant accessing domain from another guest machine
body: <p>Now, i have 2 vm machine</p>
  
  <p>First vm running api server.<br>
  Second vm acting like client that perform request to the api endpoint.</p>
  
  <p>The api server name is <a href="http://api.dev" rel="nofollow">http://api.dev</a><br>
  The client server name is <a href="http://client.dev" rel="nofollow">http://client.dev</a></p>
  
  <p>Here is vagrant file for the api server:</p>
  
  <pre><code>Vagrant.configure(2) do |config|
    config.vm.box = "lemp.dev"
    config.vm.network "private_network", ip: "192.168.10.10"
    config.vm.synced_folder "www", "/var/www/html"  
  end
  </code></pre>
  
  <p>Here is vagrant file for the client:</p>
  
  <pre><code>Vagrant.configure(2) do |config|
    config.vm.box = "lemp.dev"
    config.vm.network "private_network", ip: "192.168.10.11"
    config.vm.synced_folder "www", "/var/www/html"
  
  end
  </code></pre>
  
  <p>Here is host file on my host machine:</p>
  
  <pre><code>192.168.10.11           client.dev
  192.168.10.10           api.dev
  </code></pre>
  
  <p>I can access the <a href="http://api.dev" rel="nofollow">http://api.dev</a> from my host machine.  </p>
  
  <p>Problem is, i cant access the <a href="http://api.dev" rel="nofollow">http://api.dev</a> from my client machine.When i run <code>curl api.dev</code> i got 404 page</p>
  
  <p>What i want is to be able to access to the <a href="http://api.dev" rel="nofollow">http://api.dev</a> from another vm instance( the second vm ).</p>