No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 12

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring DNS

Configuring DNS

This section describes the configuration methods of DNS.

Configuring the DNS Client

This section describes how to configure the switch modules as a DNS client to allow users to use domain names to access other devices.

Pre-configuration Tasks

Before configuring a DNS client, complete the following tasks:

  • Configuring link layer protocol parameters for interfaces to ensure that the link layer protocol status on the interfaces is Up
  • Configuring a DNS server
  • Configuring a route between the switch modules and the DNS server
Configuring the Static Domain Name Resolution

Context

A static domain name resolution table is manually set up, describing the mappings between domain names and IP addresses. Some common domain names are added to the table. Static domain name resolution can be performed based on the static domain name resolution table. To obtain the IP address by resolving a domain name, the client searches the static domain name resolution table for the specified domain name. In this manner, the efficiency of domain name resolution is improved.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    ip host host-name ip-address

    Static DNS entries are configured.

    By default, no static DNS entries are configured.

  3. Run:

    commit 

    The configuration is committed.

Follow-up Procedure

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.

You can configure a maximum of 1024 static DNS entries.

Configuring the Dynamic Domain Name Resolution

Context

For dynamic domain name resolution, the DNS server needs to provide the mapping between domain names and IP addresses and receive domain name resolution requests from clients.

To implement dynamic DNS, you need to enable dynamic DNS resolution, configure the IP address of DNS server, configure a source IP address for the local device to receive DNS packets, and configure a domain name suffix.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dns resolve

    Dynamic domain name resolution is enabled.

    By default, dynamic DNS resolution is disabled.

  3. Run:

    dns server ip-address

    The IP address of the DNS server is configured.

    By default, no IP address of the DNS server is configured.

    A maximum of six DNS server IP addresses can be configured on the device.

  4. (Optional) Run:

    dns server source-ip ip-address

    The source IP address is configured for the local device to receive DNS packets.

    By default, no source IP address is configured for the local device to receive DNS packets.

  5. (Optional) Run:

    dns domain domain-name

    A domain name suffix is configured.

    By default, no domain name suffix is configured on a DNS client.

    A maximum of ten domain name suffixes can be configured on the device.

  6. Run:

    commit 

    The configuration is committed.

Checking the Configuration

Procedure

  • Run the display ip host command to check static DNS entries.
  • Run the display dns server command to check the DNS server configuration.
  • Run the display dns domain command to check the domain name suffix configuration.
Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 58988

Downloads: 3621

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next