R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide
85
Step Command Remarks
1. Enter system view.
system-view N/A
2. Configure a mapping
between a host name
and an IPv4 address.
ip host hostname ip-address
Not configured by default.
The IPv4 address you last assign to the host
name overwrites the previous one if there is
any.
You can create up to 50 static mappings
between domain names and IPv4
addresses.
Configuring dynamic domain name resolution
To send DNS queries to a correct server for resolution, you must enable dynamic domain name resolution
and configure a DNS server.
In addition, you can configure a DNS suffix that the system automatically adds to the provided domain
name for resolution.
Configuration guidelines
Follow these guidelines when you configure dynamic domain name resolution:
• You can configure up to six DNS servers, including those with IPv6 addresses, in system view, and
up to six DNS servers on all interfaces of a device.
• A DNS server configured in system view has a higher priority than one configured in interface view.
A DNS server configured earlier has a higher priority than one configured later in the same view.
A DNS server manually configured has a higher priority than one dynamically obtained through
DHCP. A name query request is first sent to the DNS server that has the highest priority. If no reply
is received, it is sent to the DNS server that has the second highest priority, and so on in turn.
• You can specify up to ten DNS suffixes.
Configuration procedure
To configure dynamic domain name resolution:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Enable dynamic domain
name resolution.
dns resolve Disabled by default.
3. Specify a DNS server.
• Method 1 (In system view):
dns server ip-address
• Method 2 (In interface view):
a. interface interface-type
interface-number
b. dns server ip-address
c. quit
Use at least one method.
No DNS server is specified by
default.
4. Configure a DNS suffix.
dns domain domain-name
Optional.
By default, no DNS suffix is
configured and only the provided
domain name is resolved.