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-list

dns-list

Function

The dns-list command configures the DNS server address for the DHCP client.

The undo dns-list command deletes a configured DNS server address.

By default, no DNS server address is configured.

Format

IP address pool view

dns-list { ip-address &<1-8> | unnumbered interface interface-type interface-number }

undo dns-list { ip-address | unnumbered interface | all }

DHCP Option template view

dns-list ip-address &<1-8>

undo dns-list { ip-address | all }

Parameters

Parameter

Description

Value

ip-address

Specifies the DNS server address.

The value is in dotted decimal notation. A maximum of eight DNS server addresses can be configured. These IP addresses are separated by spaces.

unnumbered interface interface-type interface-number

Borrows the DNS server address obtained by the interface as the DNS server IP address.

-

all

Deletes all DNS server addresses.

-

Views

IP address pool view, DHCP Option template view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command applies to DHCP servers. If user hosts access hosts on the network by domain names, user hosts need to send DNS requests to the DNS server and resolve the domain name to access for communication. To connect a DHCP client to the network, configure a DHCP server address so that the DHCP server can assign both the specified DNS server address and an IP address to the client. To configure DNS server addresses for an interface address pool, run the dhcp server dns-list command.

Precautions

In the IP address pool view and DHCP Option template view, a device can be configured with a maximum of eight DNS server addresses respectively. The address first assigned to the clients functions as the primary address, and the other seven addresses function as secondary addresses.

Example

# In the IP address pool view, set the IP address of the DNS server to 10.10.10.10.
<Huawei> system-view
[Huawei] ip pool global1
[Huawei-ip-pool-global1] dns-list 10.10.10.10
# In the DHCP Option template view, set the IP address of the DNS server to 10.10.10.10.
<Huawei> system-view
[Huawei] dhcp option template template1
[Huawei-dhcp-option-template-template1] dns-list 10.10.10.10
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 196790

Downloads: 122

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