]> gitweb.fluxo.info Git - vbox.git/commitdiff
Adds natresolver command
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Apr 2016 02:02:57 +0000 (23:02 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 7 Apr 2016 02:02:57 +0000 (23:02 -0300)
vbox

diff --git a/vbox b/vbox
index 10353903c8c8b5d0165ebd5b2643ccdfd33bff12..a76baab295fa1afcb95e30e9279b4000909f723f 100755 (executable)
--- a/vbox
+++ b/vbox
@@ -80,6 +80,10 @@ elif [ "$COMMAND" == "list" ]; then
   exit
 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
 else
   usage
 fi