How Can I Import the DNS Server IP Address That the Device Obtains from the Upstream Network into an Address Pool?
The device can obtain the DNS server IP address from the remote DHCP server or PPPoE server after the DHCP client or PPPoE client function is enabled on the interface connecting the device and the upstream carrier network. In addition, the device, functioning as the user gateway and DHCP server on the LAN, needs to allocate IP addresses to users on the LAN. Users on the LAN must be capable of using the DNS server to parse domain names. In V200R008C00 and later versions, you can perform the following configurations to import the DNS server IP address that the device obtains from the upstream carrier network into an address pool and allocate the IP address to users on the LAN.
For an interface address pool, run the dhcp server dns-list unnumbered interface interface-type interface-number command in the corresponding interface view.
For a global address pool, run the dns-list unnumbered interface interface-type interface-number command in the global address pool view.
The interface specified by interface interface-type interface-number connects the device and the upstream carrier network and the DHCP client or PPPoE client function is configured on the interface. Specifically, the type of the interface on which the PPPoE client function is configured must be dialer.