- Timestamp:
- Mar 13, 2012 10:54:58 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/user_AdvancedTopics.xml
r40394 r40439 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 <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/AttachedDriver/Config/HostResolverMappings/\ 1279 <uniq name of interception rule>/HostIP" <IPv4> 1280 VBoxManage setextradata <your-vm> \ 1281 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/AttachedDriver/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/AttachedDriver/Config/HostResolverMappings/\ 1288 <uniq name of interception rule>/HostIP" <IPv4> 1289 VBoxManage setextradata <your-vm> \ 1290 "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/AttachedDriver/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/AttachedDriver/Config/HostResolverMappings/\ 1298 all_forbiden_palace/HostIP" 127.0.0.1 1299 VBoxManage setextradata <your-vm> \ 1300 "VBoxInternal/Devices/e1000/0/LUN#0/AttachedDriver/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> 1306 </sect3> 1269 1307 </sect2> 1270 1308
Note:
See TracChangeset
for help on using the changeset viewer.