5 enabling dns proxy in nat mode, Cal frontend – Sun Microsystems VIRTUALBOX VERSION 3.1.0_BETA2 User Manual
Page 150
9 Advanced topics
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/BindIP" "10.45.0.2"
After this, all outgoing traffic will be sent through the interface with the IP address
10.45.0.2. Please make sure that this interface is up and running prior to this assign-
ment.
Also, if you have configured port forwarding for the NAT engine as described in
chapter
Configuring port forwarding with NAT
, page
, you can bind this con-
figuration only to a particular interface as well. Assuming that you have configured
port forwarding for a “guestssh” service, you would use the following additional com-
mand:
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/BindIP" "127.0.0.1"
This would make ssh port forwarding available from host only.
9.13.5 Enabling DNS proxy in NAT mode
For resolving network names the DHCP server of the NAT engine offers a list of regis-
tered DNS servers of the host. For some reason you might need to hide the DNS server
list, thereby forcing the VirtualBox NAT engine to react to changes in the host network
settings, for example about the end of DHCP leases. Replacing of the real list with the
address of the DNS proxy can be achieved with the following command:
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/DNSProxy" 1
9.13.6 Using the host’s resolver as a DNS proxy in NAT mode
For resolving network names, the DHCP server of the NAT engine offers a list of regis-
tered DNS servers of the host. If for some reason you need to hide this DNS server list
and use the host’s resolver settings, thereby forcing the VirtualBox NAT engine to in-
tercept DNS requests and forward them to host’s resolver, use the following command:
VBoxManage setextradata "Linux Guest"
"VBoxInternal/Devices/pcnet/0/LUN#0/Config/UseHostResolver" 1
9.14 Configuring the maximum resolution of guests
when using the graphical frontend
When guest systems with the Guest Additions installed are started using the graphical
frontend (the normal VirtualBox application), they will not be allowed to use screen
resolutions greater than the host’s screen size unless the user manually resizes them
150