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 //Configure a static DNS entry.
2. Configuration of dynamic DNS resolution
[Huawei] dns resolve //Enable dynamic DNS resolution.
[Huawei] dns server //Set the IP address of the DNS server.
[Huawei] dns domain net //Configure the DNS domain name.

Scroll to top