4.3.2 Configuring Static DNS
This section describes how to configure static DNS.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ip host
host-name
ip-address
A static DNS entry is configured.
Each host name can be mapped to only one IP address. When multiple IP addresses are mapped
to a host name, only the latest configuration takes effect. If multiple host names need to be
resolved, repeat step 2.
----End
4.3.3 Configuring Dynamic DNS
This section describes how to configure dynamic DNS.
Context
To implement dynamic DNS, you need to enable dynamic DNS resolution, configure a DNS
server, and configure a source IP address for the local routing device and a domain name suffix.
If the local routing device uses an IP address allocated by the DHCP server and the information
delivered by the DHCP server to the local routing device contains the DNS server address and
the domain name suffix list, you only need to enable dynamic DNS resolution.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
dns resolve
Dynamic DNS resolution is enabled.
Step 3
(Optional) Run:
dns server
ip-address
The IP address of the DNS server is configured.
Step 4
(Optional) Run:
dns server source-ip
ip-address
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
4 DNS Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
85