phinze/landrush — pull request #38 by amfranz (2014-03-03 18:12:58+00:00)
Title: New setting to make the modification of the guests iptables rules optional.

I made this as a workaround for the issues mentioned in #33, #35. I experience the same issues in my environment, but only when landrush modifies the iptables rules on my guests.

This disables the functionality to install the iptables rule that forwards DNS queries from the guests to Landrush. I figured that the iptables rule was not necessary in my case for the following reasons:

First a disclaimer: I use VirtualBox, I don't know how whether this will work with other providers. VirtualBox handles DNS queries from the guests by running a DNS server of its own on 10.0.2.2 which uses the hosts DNS settings as upstream. Guests get configured to use 10.0.2.2 as their DNS server, the DNS queries are forwarded to and resolved by the host.

Through this mechanism the guests actually use the host to resolve their DNS queries. Therefore as long as the hosts DNS is configured to forward queries for `.vagrant.dev` to Landrush, eg. via `dnsmasq` on Linux (see issue #36), the DNS lookup on the guest works as well.

As I have set up my machine to use `dnsmasq` to forward DNS queries to Landrush, I figured that the iptables rule was unnecessary in my case, and was actually causing unnecessary trouble (#33, #35). Therefore I have made this setting to have the option to disable the functionality that installs the iptables rule.