R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)

110
Predefined user roles
network-admin
Parameters
interface-type interface-number: Specifies an interface by its type and number.
Usage guidelines
By default, an interface obtains DNS suffix and DNS server information from DHCP. A network attacker
might act as the DHCP server to assign a wrong DNS suffix and DNS server address to the device. As a
result, the device fails to obtain the resolved IP address or might get the wrong IP address. With the DNS
trusted interface specified, the device only uses the DNS suffix and DNS server information obtained
through the trusted interface to avoid attack.
This configuration is applicable to both IPv4 and IPv6.
You can configure up to 128 DNS trusted interfaces on the device.
If you do not specify any interface, the undo dns trust-interface command removes all DNS trusted
interfaces.
Examples
# Specify GigabitEthernet 2/1/1 as the DNS trusted interface.
<Sysname> system-view
[Sysname] dns trust-interface gigabitethernet 2/1/1
ip host
Use ip host to create a host name-to-IPv4 address mapping.
Use undo ip host to remove a mapping.
Syntax
ip host host-name ip-address [ vpn-instance vpn-instance-name ]
undo ip host host-name ip-address [ vpn-instance vpn-instance-name ]
Default
No mappings are created.
Views
System view
Predefined user roles
network-admin
Parameters
host-name: Specifies a host name, a case-insensitive string of 1 to 253 characters. It can include letters,
digits, hyphens (-), underscores (_), and dots (.).
ip-address: Specifies the IPv4 address of the host.
vpn-instance vpn-instance-name: Specifies the name of an MPLS L3VPN instance, a case-sensitive string
of 1 to 31 characters. To specify a host name-to-IP address mapping on the public network, do not
specify this option.