0.0
No commit activity in last 3 years
No release in over 3 years
a vagrant plugin that set guest dns configuration, e.g. interfaces
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.10
>= 10.0
>= 0
 Project Readme

Vagrant::DnsConf

a vagrant plugin that set guest dns configuration, e.g. interfaces

objective

If use synced-folder with nfs, vagrant try to install nfs-common but Installation fails if resolv.conf contains an inaccessible dns server addresses. same as smb(cifs-utils), and other packages that install before provision.

confirmed on

  • generic/debian9, generic/debian10, generic/debian11
  • generic/ubuntu1804,generic/ubuntu1904,generic/ubuntu1910

Installation

vagrant plugin install vagrant-dnsconf

Usage

Example Vagrantfile

Vagrant.configure("2") do |config|

  config.dnsconf.replaces = [
          {:before => "4.2.2.1", :after => "192.168.100.10"},
          {:before => "4.2.2.2", :after => "192.168.100.11"}
  ]
  config.dnsconf.deletes = [
        "208.67.220.220"
  ]
  config.dnsconf.dnssec = false # option
  # ... other stuff
end

Development

git clone https://github.com/kawaway/vagrant-dnsconf
cd vagrant-dnsconf
bundle install
rake build
vagrant plugin install pkg/vagrant-dnsconf-*.gem

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kawaway/vagrant-dnsconf. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.