How to delete DNS parameters on DHCP-enabled S series switches

16

For S series switches excluding the S1700, you can delete the delivered DNS server IP address using a command. Assume that the DNS server IP address is set to 10.1.1.1/24. Perform the following steps:
- Based on the global address pool
[Huawei] ip pool pool1
[Huawei-ip-pool-pool1] undo dns-list 10.1.1.1 //Delete the DNS server IP address.
- Based on the interface address pool
[Huawei] interface vlanif 10 //Interface of the DHCP server connected to clients
[Huawei-Vlanif10] undo dhcp server dns-list 10.1.1.1 //Delete the DNS server IP address.
- Based on 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.
The client needs to release the original IP address and apply for an IP address.

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 .

How to enable the timestamp in logs for S series switches
For S series switches (except the S1700), logs, traps, and debug messages contain a timestamp by default to record the time when the message is generated. If messages do not contain a timestamp, run the display this command in the system view to check whether the following commands are configured and the timestamp function is disabled: - info-center timestamp log none - info-center timestamp trap none - info-center timestamp debugging none If the timestamp function is disabled, run the undo info-center timestamp command to restore default settings.

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.

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