vagrantup 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4881add7aaa87715f372cca6beebdd072a0d422d
4
- data.tar.gz: 9c102ab6573bdc7c8f05dcf49023a8bd9c4b6b81
3
+ metadata.gz: e00fcfbb23193067c2a4afea59ae386dea208b0d
4
+ data.tar.gz: ca231121eaa851f69dfd8b360358bd4804b394ae
5
5
  SHA512:
6
- metadata.gz: 0d75ceaa126d3c13f3a6d13b881848baa767349cb52e2f6a560d3bafe086dbef5c63c606d81b40464cd61aa7accddf6f3a6c6fdbd2513e9723ace275bea006dc
7
- data.tar.gz: fbe6c996e33357870f7bc0ac42018c806c63ce60b93e151b7091d7b057fc67b17f4c7302e0d7f893aea2c4fd156c8c9170f8ebe913ada5ea50c22511ece05e58
6
+ metadata.gz: bd27ea5ad68e7fdc28fe857b0e0ee4c55dbdbf201169d5a046d11dde5153d2dbc5d0068afc0ada829dbcfbd6139634fea92486c0165f517e81920e4f4360518a
7
+ data.tar.gz: c224f537f42011a882d432fd6d14202958ab4f91af54c33256c4b57f4d37a20dfb559f4676d8b9aa04063631b110ef0eb7af366a57ef1f6f92589f2c4ab72fac
@@ -1,3 +1,9 @@
1
+ ## 1.0.3 (May 1, 2012)
2
+
3
+ - Don't enable NAT DNS proxy on machines where resolv.conf already points
4
+ to localhost. This allows Vagrant to work once again with Ubuntu
5
+ 12.04. [GH-909]
6
+
1
7
  ## 1.0.2 (March 25, 2012)
2
8
 
3
9
  - Provisioners will still mount folders and such if `--no-provision` is
@@ -28,13 +28,34 @@ module Vagrant
28
28
  ]
29
29
  attempt_and_log(command, "Enabling the Host I/O cache on the SATA controller...")
30
30
 
31
- # Enable the DNS proxy while in NAT mode. This shields the guest
32
- # VM from external DNS changs on the host machine.
33
- command = [
34
- "modifyvm", env[:vm].uuid,
35
- "--natdnsproxy1", "on"
36
- ]
37
- attempt_and_log(command, "Enable the NAT DNS proxy on adapter 1...")
31
+ enable_dns_proxy = true
32
+ begin
33
+ contents = File.read("/etc/resolv.conf")
34
+
35
+ if contents =~ /^nameserver 127\.0\.0\.1$/
36
+ # The use of both natdnsproxy and natdnshostresolver break on
37
+ # Ubuntu 12.04 that uses resolvconf with localhost. When used
38
+ # VirtualBox will give the client dns server 10.0.2.3, while
39
+ # not binding to that address itself. Therefore disable this
40
+ # feature if host uses the resolvconf server 127.0.0.1
41
+ @logger.info("Disabling DNS proxy since resolv.conf contains 127.0.0.1")
42
+ enable_dns_proxy = false
43
+ end
44
+ rescue Errno::ENOENT; end
45
+
46
+ # Enable/disable the NAT DNS proxy as necessary
47
+ if enable_dns_proxy
48
+ command = [
49
+ "modifyvm", env[:vm].uuid,
50
+ "--natdnsproxy1", "on"
51
+ ]
52
+ attempt_and_log(command, "Enable the NAT DNS proxy on adapter 1...")
53
+ else
54
+ command = [ "modifyvm", env[:vm].uuid, "--natdnsproxy1", "off" ]
55
+ attempt_and_log(command, "Disable the NAT DNS proxy on adapter 1...")
56
+ command = [ "modifyvm", env[:vm].uuid, "--natdnshostresolver1", "off" ]
57
+ attempt_and_log(command, "Disable the NAT DNS resolver on adapter 1...")
58
+ end
38
59
 
39
60
  @app.call(env)
40
61
  end
@@ -2,5 +2,5 @@ module Vagrant
2
2
  # This will always be up to date with the current version of Vagrant,
3
3
  # since it is used to generate the gemspec and is also the source of
4
4
  # the version for `vagrant -v`
5
- VERSION = "1.0.2"
5
+ VERSION = "1.0.3"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrantup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto