VirtualBox

Changeset 40439 in vbox for trunk


Ignore:
Timestamp:
Mar 13, 2012 10:54:58 AM (13 years ago)
Author:
vboxsync
Message:

doc: description of configuration user-defined aliasing mechanism in host-resolver.

File:
1 edited

Legend:

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

    r40394 r40439  
    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        <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/AttachedDriver/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/AttachedDriver/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/AttachedDriver/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/AttachedDriver/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/AttachedDriver/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/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>
    12691307    </sect2>
    12701308
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