How to configure DNS information on the AR

When a DHCP client needs to communicate with another network device through the host name, the Domain Name System (DNS) needs to be deployed. DNS configuration modes:
-Global address pool
[Huawei] ip pool pool1
[Huawei-ip-pool-pool1] dns-list 10.1.1.2 //Statically specify the DNS server's IP address through a DHCP client.
[Huawei-ip-pool-pool1] domain-name huawei.com //Configure the domain name suffix for the DHCP client.
-Interface address pool:
[Huawei] interface gigabitethernet 1/0/0 //Enter the view of the interface on the DHCP server connected to the client.
[Huawei-GigabitEthernet1/0/0] undo portswitch //Switch to the Layer 3 interface.
[Huawei-GigabitEthernet1/0/0] dhcp server dns-list 10.1.1.2 //Statically specify the DNS server's IP address for the DHCP client.
[Huawei-GigabitEthernet1/0/0] dhcp server domain-name huawei.com //Configure the domain name suffix for the DHCP client.
-DHCP Option
This mode applies to the scenario where DHCP clients are assigned fixed IP addresses.
-When the interface address pool is used, you need to configure the DHCP server based on the interface address pool.
-For the global address pool mode and DHCP Option, you need to configure the DHCP server based on the global address pool.

Scroll to top