VirtualBox

Changeset 40441 in vbox for trunk/doc


Ignore:
Timestamp:
Mar 13, 2012 11:37:19 AM (13 years ago)
Author:
vboxsync
Message:

doc: improved r76791

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/user_AdvancedTopics.xml

    r40440 r40441  
    12671267      the resolver mode will interpret the DNS requests and use the host's DNS
    12681268      API to query the information and return it to the guest.</para>
     1269
    12691270        <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 &lt;your-vm&gt; \
    1278                     "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\
    1279                      &lt;uniq name of interception rule&gt;/HostIP" &lt;IPv4&gt;
    1280                 VBoxManage setextradata &lt;your-vm&gt; \
    1281                     "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\
    1282                     &lt;uniq name of interception rule&gt;/HostName" &lt;name of host&gt;
    1283             </screen>
    1284             This command set rule for mapping pattern name to specified IP.
    1285             <screen>
    1286                 VBoxManage setextradata &lt;your-vm&gt; \
    1287                     "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\
    1288                     &lt;uniq name of interception rule&gt;/HostIP" &lt;IPv4&gt;
    1289                 VBoxManage setextradata &lt;your-vm&gt; \
    1290                     "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/\
    1291                     &lt;uniq name of interception rule&gt;/HostNamePattern" &lt;pattern of host "|","?","*" are allowed&gt;
    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 &lt;your-vm&gt; \
    1297                     "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/\
    1298                     all_forbiden_palace/HostIP" 127.0.0.1
    1299                 VBoxManage setextradata &lt;your-vm&gt; \
    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      &lt;uniq name of interception rule&gt;/HostIP" &lt;IPv4&gt;
     1281VBoxManage setextradata "VM name" \
     1282      "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
     1283      &lt;uniq name of interception rule&gt;/HostName" &lt;name of host&gt;</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      &lt;uniq name of interception rule&gt;/HostIP" &lt;IPv4&gt;
     1288VBoxManage setextradata "VM name" \
     1289      "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
     1290      &lt;uniq name of interception rule&gt;/HostNamePattern" &lt;hostpattern&gt;</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
     1297VBoxManage 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>
    13061303        </sect3>
    13071304    </sect2>
     
    14621459      following command:</para>
    14631460
    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>
    14651462
    14661463      <para>where <computeroutput>PARAMETER</computeroutput> is one of the
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette