How to configure DNS information on the AR

15

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.

Other related questions:
The DHCP client cannot obtain DNS information on the AR
DPossible causes are as follows: 1. The route from the AR to the DHCP server is unreachable. 2. The DNS and DHCP configuration modes are different. When the DHCP server assigns an IP address and gateway address to a client, the DHCP server also sends the DNS server address to the client. Ensure that the DNS server address and DHCP server address are configured in the global address pool or on an interface so that the DHCP server can find the DNS server IP address and deliver it.

How are DNS and NetBIOS server addresses configured on an AR
The AR can automatically assign the DNS server IP address allocated by a carrier, DNS domain name suffix, and NetBIOS server address to a DHCP client. Perform the following configurations: - Interface-based [Huawei] interface gigabitethernet 1/0/0 [Huawei-GigabitEthernet1/0/0] dhcp select interface [Huawei-GigabitEthernet1/0/0] dhcp server import all //Enable the interface to automatically obtain the DNS and NetBIOS server addresses. - Global mode [Huawei] ip pool global [Huawei-ip-pool-global] import all //Enable the AR to automatically obtain the DNS and NetBIOS server addresses in the global address pool.

Measure for troubleshooting DNS faults on the AR
If the DNS fault occurs on a Huawei AR, you can perform the following operations: 1. Run the display dns dynamic-host command to check whether the specified domain name exists in the dynamic domain name cache. -If the domain name to be parsed does not exist, check whether the AR and the DNS server communicate with each other properly, whether the DNS server works properly, and whether dynamic domain name resolution is enabled. - If the domain name to be parsed exists but the IP address is incorrect, perform step 2. 2. Run the display dns server command to check the DNS server configuration. Check whether the IP address of the DNS server is correct. If the IP address of the DNS server is incorrect, run the undo dns server ip-address command to delete the configured DNS server address, and then run the dns server ip-address command to reconfigure correct IP address for the DNS server.

How to configure the AR router to obtain DNS address from the ISP provider?
The configuration of the AR router to obtain the DNS address from the ISP provider is as follows. [Huawei] interface dialer 0 [Huawei-Dialer0] PPP IPCP DNS admit-any //configure the router passively receive the address of the DNS server which was specified by other end [Huawei-Dialer0] PPP IPCP DNS request //router active request to end the specified DNS server address

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