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

Fat AP and Cloud AP V200R010C00 Command Reference

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).
dns zone

dns zone

Function

The dns zone command creates a DNS zone and displays the DNS zone view.

The undo dns zone command deletes the DNS zone.

By default, no DNS zone is configured.

Format

dns zone zone-name

undo dns zone zone-name

Parameters

Parameter

Description

Value

zone-name

Specifies the name of a DNS zone.

The value is a string of 1 to 63 case-insensitive characters without spaces.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Static domain name resolution is implemented using static resource records. Static resource records of type A and type AAAA can be queried. The manually created mappings between some common domain names and IP addresses are stored locally as static resource records. When a client requests for the IP address corresponding to a domain name, the device first queries the IP address information locally, improving the efficiency of domain name resolution.

Static resource records can be configured using ip host host-name ip-address or configured in the DNS zone. You can select the static resource record configuration method based on the following rules: When the domain name length does not exceed 24 characters, use ip host to configure static resource records; when the domain name length exceeds 24 characters, configure static resource records in the DNS zone. When you configure static resource records in the DNS zone, use the domain name consisting of the host name (in the static resource records of type A or type AAAA) and DNS zone name.

If the static resource records configured using the preceding two methods both exist on the device, when the device performs DNS query, the static resource records configured using ip host host-name ip-address take precedence over those configured in the DNS zone. For example, when receiving a DNS query request, the device first queries the static resource records configured using ip host based on the domain name. If no matching record can be found, the device queries the static resource records configured in the DNS zone based on the domain name. If the matching record can be found in the static resource records configured in the DNS zone, the device sends a response; otherwise, the device forwards the DNS query request to the remote DNS server.

Follow-up Procedure

In the DNS zone view, run the rr a hostname host-name ip-address ip-address or rr aaaa hostname host-name ipv6-address ipv6-address command to configure static resource records of type A or type AAAA.

Example

# Create the DNS zone com.

<Huawei> system-view
[Huawei] dns zone com
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 204058

Downloads: 122

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