- Timestamp:
- Mar 13, 2012 11:37:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/user_AdvancedTopics.xml
r40440 r40441 1267 1267 the resolver mode will interpret the DNS requests and use the host's DNS 1268 1268 API to query the information and return it to the guest.</para> 1269 1269 1270 <sect3 id="nat_host_resolver_name_intercepting"> 1270 <title>User-defined host name resolving</title> 1271 <para>In some cases it might be useful to intercept name resolving mechanism, 1272 providing user-defined IP address on particular DNS request. Intercepting mechanism 1273 lets user to map not only single host, but domains and more complex namings conventions if 1274 required. 1275 This command set rule for mapping name to specified IP. 1276 <screen> 1277 VBoxManage setextradata <your-vm> \ 1278 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\ 1279 <uniq name of interception rule>/HostIP" <IPv4> 1280 VBoxManage setextradata <your-vm> \ 1281 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\ 1282 <uniq name of interception rule>/HostName" <name of host> 1283 </screen> 1284 This command set rule for mapping pattern name to specified IP. 1285 <screen> 1286 VBoxManage setextradata <your-vm> \ 1287 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\ 1288 <uniq name of interception rule>/HostIP" <IPv4> 1289 VBoxManage setextradata <your-vm> \ 1290 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\ 1291 <uniq name of interception rule>/HostNamePattern" <pattern of host "|","?","*" are allowed> 1292 </screen> 1293 This example demonstrates how to instruct host-resolver mechanism to resolve all domain 1294 and probably some mirrors of www.forbiden-palace.info site with IP 127.0.0.1. 1295 <screen> 1296 VBoxManage setextradata <your-vm> \ 1297 "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/\ 1298 all_forbiden_palace/HostIP" 127.0.0.1 1299 VBoxManage setextradata <your-vm> \ 1300 "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/\ 1301 all_forbiden_palace/HostNamePattern" "*.forbinden-palace.*|*.fb.org" 1302 </screen> 1303 Note: host resolver mechanism should be on to use defined by user mapping rules (please see 1304 <xref linkend="nat_host_resolver_proxy" /> for more details). 1305 </para> 1271 <title>User-defined host name resolving</title> 1272 <para>In some cases it might be useful to intercept the name resolving mechanism, 1273 providing a user-defined IP address on a particular DNS request. The intercepting 1274 mechanism allows the user to map not only a single host but domains and even more 1275 complex namings conventions if required.</para> 1276 <para> 1277 The following command sets a rule for mapping a name to a specified IP:</para> 1278 <screen>VBoxManage setextradata "VM name" \ 1279 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \ 1280 <uniq name of interception rule>/HostIP" <IPv4> 1281 VBoxManage setextradata "VM name" \ 1282 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \ 1283 <uniq name of interception rule>/HostName" <name of host></screen> 1284 <para>The following command sets a rule for mapping a pattern name to a specified IP:</para> 1285 <screen>VBoxManage setextradata "VM name" \ 1286 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \ 1287 <uniq name of interception rule>/HostIP" <IPv4> 1288 VBoxManage setextradata "VM name" \ 1289 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \ 1290 <uniq name of interception rule>/HostNamePattern" <hostpattern></screen> 1291 <para>The host pattern may include <computeroutput>"|", "?" and "*"</computeroutput>.</para> 1292 <para>This example demonstrates how to instruct the host-resolver mechanism to resolve 1293 all domain and probably some mirrors of www.blocked-site.info site with IP 127.0.0.1:</para> 1294 <screen>VBoxManage setextradata "VM name" \ 1295 "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/ \ 1296 all_blocked_site/HostIP" 127.0.0.1 1297 VBoxManage setextradata "VM name" \ 1298 "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/ \ 1299 all_blocked_site/HostNamePattern" "*.blocked-site.*|*.fb.org"</screen> 1300 <note><para>The host resolver mechanism should be enabled to use user-defined 1301 mapping rules (please see 1302 <xref linkend="nat_host_resolver_proxy" /> for more details).</para></note> 1306 1303 </sect3> 1307 1304 </sect2> … … 1462 1459 following command:</para> 1463 1460 1464 <screen>VBoxManage guestproperty set VM_NAME"/VirtualBox/GuestAdd/VBoxService/PARAMETER" VALUE</screen>1461 <screen>VBoxManage guestproperty set "VM name" "/VirtualBox/GuestAdd/VBoxService/PARAMETER" VALUE</screen> 1465 1462 1466 1463 <para>where <computeroutput>PARAMETER</computeroutput> is one of the
Note:
See TracChangeset
for help on using the changeset viewer.