Open miminar opened 1 year ago
There’s (currently) no direct way of doing that.
However, you could edit - either manually or using ruby in your vagrant file. ~/.vagrant.d/tmp/dns/config
(which is a YAML file). If you can do that before the machines getting up, you won’t even need to restart the vagrant-dns server.
But remember, that there’s no one cleaning up after you :)
If you opt for editing using ruby, and your names are regular expression, you should use https://github.com/BerlinVagrant/vagrant-dns/blob/master/lib/vagrant-dns/registry.rb which takes care of converting RegExps correctly.
If you opt for editing using ruby, and your names are regular expression, you should use https://github.com/BerlinVagrant/vagrant-dns/blob/master/lib/vagrant-dns/registry.rb which takes care of converting RegExps correctly.
First of all, thanks for the great plugin.
Maybe I am missing something, but I cannot find a way how to add a static IP entry not belonging to any managed VM.
My use-case: 3 managed VMs are configured with keepalived to create a virtual IP in the same network. I'd like to assign a name to this IP using this plugin.
Here's my shortened Vagrant file:
I wonder if in addition to
config.dns.patterns = [/^(?:\w+\.)?k0s.vdev$/]
, one could add something like:Your help would be appreciated.