View DNS list on S series switch through a client

4

S series switches (except S1700 switches) can deliver DNS parameters to clients through DHCP. After a PC obtains an IP address from a switch that functions as a DHCP server, run the ipconfig/all command on the PC to view DNS parameters delivered by the switch.

Other related questions:
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.

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.

View VLANs mapped to IP addresses of clients connected to S series switches
On S series switches, you can view ARP entries to obtain the VLANs mapped to the IP addresses of clients connected to the switches. The following is an example: [HUAWEI] display arp all IP ADDRESS MAC ADDRESS EXPIRE(M) TYPE INTERFACE VPN-INSTANCE VLAN/CEVLAN ---------------------------------------------------------------------------------------------------------------------------- 10.133.217.202 00e0-0987-7890 I - Eth0/0/0 10.133.216.1 0000-5e00-0149 20 D-0 Eth0/0/0 10.1.1.2 00e0-0987-7899 I - GE6/1/1 192.168.11.254 aaaa-bbbb-cc92 12 D-0 Eth-Trunk1 11/- 192.168.11.253 ac85-3da6-a420 16 D-0 Eth-Trunk1 11/- ---------------------------------------------------------------------------------------------------------------------------- Total:5 Dynamic:3 Static:0 Interface:2 The two clients with the IP addresses 192.168.11.254 and 192.168.11.253 belong to VLAN 11.

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