diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-12-01 15:24:21 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-12-01 15:24:21 -0200 |
commit | 86ab015ea867a24d5400e4683c305e6eb0568b3b (patch) | |
tree | c278d9a16c31f2ea8553b1341905960b2b4be786 | |
parent | 5a736fa9c6a5a5f0dfd089b5b656be945c54c668 (diff) | |
download | vbox-86ab015ea867a24d5400e4683c305e6eb0568b3b.tar.gz vbox-86ab015ea867a24d5400e4683c305e6eb0568b3b.tar.bz2 |
Run natresolver config when bringing up
-rwxr-xr-x | vbox | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -49,9 +49,16 @@ function vbox_clip { exit } +function vbox_natresolver { + # See host's resolver as a DNS proxy in NAT mode + # https://www.virtualbox.org/manual/ch09.html#nat_host_resolver_proxy + VBoxManage modifyvm $VM --natdnshostresolver1 on +} + # Build options if [ ! -z "$VM" ]; then if [ "$COMMAND" == "up" ]; then + vbox_natresolver vbox_run startvm elif [ "$COMMAND" == "down" ]; then vbox_run controlvm savestate @@ -81,9 +88,7 @@ elif [ "$COMMAND" == "list" ]; then elif [ "$COMMAND" == "clip" ]; then vbox_clip elif [ "$COMMAND" == "natresolver" ]; then - # See host's resolver as a DNS proxy in NAT mode - # https://www.virtualbox.org/manual/ch09.html#nat_host_resolver_proxy - VBoxManage modifyvm $VM --natdnshostresolver1 on + vbox_natresolver else usage fi |