Delete DNS parameters on S series switch

24

If an S series switch (except an S1700 switch) delivers the DNS server IP address to clients through DHCP, the DNS server IP address can be deleted using commands. For example, if the DNS server IP address 10.1.1.1/24 has been configured on a switch, you can delete it as follows:
- If the original configuration is based on a global address pool:
[Huawei] ip pool pool1
[Huawei-ip-pool-pool1] undo dns-list 10.1.1.1 //Delete the DNS server IP address.
- If the original configuration is based on an interface address pool:
[Huawei] interface vlanif 10 //Enter the view of the DHCP server interface connected to clients.
[Huawei-Vlanif10] undo dhcp server dns-list 10.1.1.1 //Delete the DNS server IP address.
- If the original configuration is based on a DHCP Option template:
[Huawei] dhcp option template temp1
[Huawei-dhcp-option-template-temp1] undo dns-list 10.1.1.1 //Delete the DNS server IP address.
Additionally, clients need to release their original IP addresses and apply for new IP addresses from the DHCP server.

Other related questions:
Delete DNS parameters on S series switch
If an S series switch (except an S1700 switch) delivers the DNS server IP address to clients through DHCP, the DNS server IP address can be deleted using commands. For example, if the DNS server IP address 10.1.1.1/24 has been configured on a switch, you can delete it as follows: - If the original configuration is based on a global address pool: [Huawei] ip pool pool1 [Huawei-ip-pool-pool1] undo dns-list 10.1.1.1 //Delete the DNS server IP address. - If the original configuration is based on an interface address pool: [Huawei] interface vlanif 10 //Enter the view of the DHCP server interface connected to clients. [Huawei-Vlanif10] undo dhcp server dns-list 10.1.1.1 //Delete the DNS server IP address. - If the original configuration is based on a DHCP Option template: [Huawei] dhcp option template temp1 [Huawei-dhcp-option-template-temp1] undo dns-list 10.1.1.1 //Delete the DNS server IP address. Additionally, clients need to release their original IP addresses and apply for new IP addresses from the DHCP server.

Method to configure DNS parameters on DHCP-enabled S series switches
When an S series switch excluding the S1700 functions as the DHCP server, the switch can deliver DNS parameters to clients in DHCP mode. The configuration procedure is as follows: - Based on the interface address pool [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server dns-list 192.168.1.254 //Configure the DNS server address. [HUAWEI-Vlanif100] dhcp server domain-name huawei.com //Configure a domain name suffix. - Based on the global address pool [HUAWEI] ip pool global1 [HUAWEi-ip-pool-global1] dns-list 192.168.1.254 //Configure the DNS server address. [HUAWEI-ip-pool-global1] domain-name huawei.com //Configure a domain name suffix. - Based on the DHCP Option template [HUAWEI] dhcp option template template1 [HUAWEI-dhcp-option-template-template1] dns-list 192.168.1.254 //Configure the DNS server address. [HUAWEI-dhcp-option-template-template1] domain-name huawei.com //Configure a domain name suffix .

DNS server parameter settings on S series switch
When S series switches (except S1700 switches) function as DHCP servers, they can deliver DNS service parameters to clients through DHCP. The configuration process is as follows: - Interface address pool: [HUAWEI] dhcp enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] ip address 10.10.10.10 24 [HUAWEI-Vlanif100] dhcp select interface [HUAWEI-Vlanif100] dhcp server dns-list 192.168.1.254 //Configure an IP address for the DNS server. [HUAWEI-Vlanif100] dhcp server domain-name huawei.com //Configure a domain name suffix. - Global address pool: [HUAWEI] ip pool global1 [HUAWEi-ip-pool-global1] dns-list 192.168.1.254 //Configure an IP address for the DNS server. [HUAWEI-ip-pool-global1] domain-name huawei.com //Configure a domain name suffix. - Using a DHCP Option template: [HUAWEI] dhcp option template template1 [HUAWEI-dhcp-option-template-template1] dns-list 192.168.1.254 //Configure an IP address for the DNS server. [HUAWEI-dhcp-option-template-template1] domain-name huawei.com //Configure a domain name suffix.

DNS configuration on S series switch
S series switches (except S1700 switches) support only configuration of the DNS client. There are two DNS resolution modes: static and dynamic. The two modes can be used together. The switch first uses static DNS resolution (by searching the local static domain name resolution table). If static DNS resolution fails, the switch uses dynamic DNS resolution (by sending a DNS resolution request to the DNS server). Dynamic DNS resolution takes a period of time and requires cooperation from the DNS server. You can add common domain names to the static domain name resolution table to improve the efficiency of resolving domain names. To enable static and dynamic DNS resolution on S series switches, perform the following configuration: 1. Configuration of static DNS resolution [Huawei] ip host hostB 10.4.1.1 //Configure a static DNS entry. 2. Configuration of dynamic DNS resolution [Huawei] dns resolve //Enable dynamic DNS resolution. [Huawei] dns server 10.3.1.2 //Set the IP address of the DNS server. [Huawei] dns domain net //Configure the DNS domain name.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top