Sławosz
Sławosz

Reputation: 11687

Resolving hostnames for bunch of vagrant machines

I have few decoupled components, each of these runs on separate vagrant box. What I would like to do, is giving each of these box hostname, which would be automatically resolved as domain from host and from other vagrant boxes. What is the best way to do it?

Edit: I think the best solution would be global register of running vagrant boxes, and when one machine is up or down changes host and other machines /etc/hosts.

Upvotes: 1

Views: 577

Answers (1)

tmatilai
tmatilai

Reputation: 4176

The are multiple plugins for this kind of functionality. Two popular plugins with different approaches are for example landrush and vagrant-hostmanager.

Upvotes: 2

Related Questions