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

NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services
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 Client

Configuring DNS Client

This section describes how to configure DNS and establish mappings between domain names and IP addresses, so that a device can communicate with other devices using domain names.

Usage Scenario

If you want to use meaningful and easy-to-memorize domain names to access other devices, configure DNS. DNS entries record the mappings between domain names and IP addresses. In Figure 6-1, the DNS client and client program are on the same device.
  • If you seldom use domain names to visit other devices or no DNS server is available, configure static DNS on the DNS client. To configure static DNS, you must know the mappings between domain names and IP addresses. If a mapping changes, you must manually modify the DNS entry on the DNS client.
  • If you want to use domain names to visit many devices and DNS servers are available, configure dynamic DNS on the DNS client. Dynamic DNS requires DNS servers.
Figure 6-1 Networking diagram for typical domain name resolution

Pre-configuration Tasks

Before configuring DNS, complete the following tasks:
  • Configuring a route between the DNS client and server, so that the DNS client and server can communicate

  • Configuring DNS servers

Procedure

  • Configure static DNS.

    1. Run system-view

      The system view is displayed.

    2. Run ip host [ vpn-instance vpn-name ]

      The mapping between the domain name and IPv4 address of the host is configured.

    3. Run commit

      The configuration is committed.

  • Configure dynamic DNS.

    1. Run system-view

      The system view is displayed.

    2. Run dns resolve

      Dynamic DNS is enabled.

    3. Run dns server ip-address [ vpn-instance vpn-name ]

      A DNS server is specified.

    4. (Optional) Run dns server source-ip source-ip-address [ vpn-instance vpn-name ]

      An IP address is specified for the DNS client to communicate with the DNS server. Using a specified source address ensures the security of communication between the DNS client and DNS server.

    5. Run dns domain domain-name [ vpn-instance vpn-name ]

      A domain name suffix is added.

    6. (Optional) Run dns timeout interval-time

      A DNS query response timeout period is configured.

    7. (Optional) Run dns try times

      The number of retransmission times for DNS query packets is configured.

    8. Run commit

      The configuration is committed.

    NOTE:

    To configure multiple DNS servers, repeatedly perform Step 3. To configure multiple domain name suffixes, repeatedly perform Step 5.

Verifying the Configuration of a DNS Client

After configuring a DNS client, verify the configuration.

  • Run the display ip host command to view static DNS entries, including mappings between domain names and IP addresses.

    <HUAWEI> display ip host
    Host          Age       Flags           Address
    hw            0         static          10.1.1.1
    gww           0         static          192.168.1.1
  • Run the display dns server command to view the IP addresses of all configured DNS servers.

    <HUAWEI> display dns server
    IPv4 Dns Servers :
    Domain-server        IpAddress
         1               172.16.1.1
         2               172.16.1.2
    IPv6 Dns Servers :
    Domain-server Ipv6Address            Interface Name
         1        2001:db8::1
         2        2001:db8::2
    
  • Run the display dns domain command to view the domain name suffix list.

    <HUAWEI> display dns domain
    No                   Domain Name
    1                    com
    2                    net
  • Run the display dns dynamic-host command to view dynamic DNS entries stored in the cache.

    <HUAWEI> display dns dynamic-host
    No  Domain Name         IpAddress      TTL    Alias
    1   www.huawei.com      10.1.1.1       3521
    2   www.huawei.com.cn   10.2.1.1       3000
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 15442

Downloads: 33

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