[icinga-checkins] icinga.org: icinga-vagrant/master: Fix DNS guest resolving problem

git at icinga.org git at icinga.org
Thu May 5 14:53:30 CEST 2016


Module: icinga-vagrant
Branch: master
Commit: 0bf6ac46864516658c98920fc2b0f18e512d4b03
URL:    https://git.icinga.org/?p=icinga-vagrant.git;a=commit;h=0bf6ac46864516658c98920fc2b0f18e512d4b03

Author: Vitaliy Okulov <admin at vokulov.ru>
Date:   Thu May  5 14:52:04 2016 +0200

Fix DNS guest resolving problem

http://serverfault.com/questions/453185/vagrant-virtualbox-dns-10-0-2-3-not-working

fixes #10336

Signed-off-by: Michael Friedrich <michael.friedrich at netways.de>

---

 icinga1x/Vagrantfile         |    2 ++
 icinga2x-cluster/Vagrantfile |    2 ++
 icinga2x-graylog/Vagrantfile |    2 ++
 icinga2x/Vagrantfile         |    2 ++
 4 files changed, 8 insertions(+)

diff --git a/icinga1x/Vagrantfile b/icinga1x/Vagrantfile
index 7b655c3..d89cb28 100644
--- a/icinga1x/Vagrantfile
+++ b/icinga1x/Vagrantfile
@@ -24,6 +24,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   config.vm.network :forwarded_port, guest: 8080, host: 8082, auto_correct: true #tomcat
   config.vm.provider "virtualbox" do |vb|
     vb.customize ["modifyvm", :id, "--memory", "1024"]
+    # Using the host's resolver as a DNS proxy in NAT mode
+    vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
   end
   config.vm.provision :shell, :path => "manifests/init.sh"
   config.vm.provision :puppet do |puppet|
diff --git a/icinga2x-cluster/Vagrantfile b/icinga2x-cluster/Vagrantfile
index 538b699..a7f3303 100644
--- a/icinga2x-cluster/Vagrantfile
+++ b/icinga2x-cluster/Vagrantfile
@@ -59,6 +59,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 
         v.customize ["modifyvm", :id, "--memory", "1024"]
         v.customize ["modifyvm", :id, "--cpus", "2"]
+        # Using the host's resolver as a DNS proxy in NAT mode
+        v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
       end
 
       # provisioner
diff --git a/icinga2x-graylog/Vagrantfile b/icinga2x-graylog/Vagrantfile
index 72fac03..8eec4a1 100644
--- a/icinga2x-graylog/Vagrantfile
+++ b/icinga2x-graylog/Vagrantfile
@@ -60,6 +60,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 
         v.customize ["modifyvm", :id, "--memory", "1024"]
         v.customize ["modifyvm", :id, "--cpus", "2"]
+        # Using the host's resolver as a DNS proxy in NAT mode
+        v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
       end
 
       # provisioner
diff --git a/icinga2x/Vagrantfile b/icinga2x/Vagrantfile
index 5282128..074fd36 100644
--- a/icinga2x/Vagrantfile
+++ b/icinga2x/Vagrantfile
@@ -63,6 +63,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 
         v.customize ["modifyvm", :id, "--memory", "2048"]
         v.customize ["modifyvm", :id, "--cpus", "2"]
+        # Using the host's resolver as a DNS proxy in NAT mode
+        v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
       end
 
       # provisioner



More information about the icinga-checkins mailing list