BerlinVagrant / vagrant-dns

A plugin to manage DNS records for vagrant environments
MIT License
490 stars 50 forks source link

multi-machine support #30

Closed mbizkit76 closed 6 years ago

mbizkit76 commented 10 years ago

It would be very useful if this plugin could support multi machines enviroments At the time it seems not possible

gplasky commented 10 years ago

Seems to work well for me with multiple VMs defined. I found a tripping point wherein I was defining my VMs with a FQDN (e.g. test001.dev). This causes the resolver to silently break as it uses the full hostname from config.vm.hostname when creating the local resolver entry, so test001.dev with config.dns.tld = 'dev' becomes test001.dev.dev.

jonashackt commented 6 years ago

For me, a Vagrant multi-machine setup is also fully working. You can check the Vagrantfile here https://github.com/jonashackt/ansible-windows-docker-springboot/blob/master/step4-windows-linux-multimachine-vagrant-docker-swarm-setup/Vagrantfile. It comprises of 2 Ubuntu and 2 Windows Server 1709 boxes, which use this Plugin for later DNS resolution with Traefik proxy. See the full example here: https://github.com/jonashackt/ansible-windows-docker-springboot

fnordfish commented 6 years ago

fixed via #63