< Home

(Optional) Configuring DNS Configurations Allocated by a DHCP Server

Context

If DHCP clients on your network use DNS and you want them to receive DNS configurations through DHCP, configure the DHCP server to provide DNS configurations.

Procedure

  • Based on an interface address pool
    1. Enter the system view.

      system-view

    2. Enter the interface view.

      interface interface-type interface-number

    3. Configure the IP address of a DNS server for DHCP clients.

      dhcp server dns-list { ip-address &<1-8> | unnumbered interface interface-type interface-number }

      By default, no DNS server IP address is configured in an address pool.

      Each address pool can be configured with a maximum of eight DNS server IP addresses.

    4. Configure a domain name that is allocated to DHCP clients.

      dhcp server domain-name domain-name

      By default, no domain name is allocated.

  • Based on a global address pool in the global address pool view
    1. Enter the system view.

      system-view

    2. Enter the global address pool view.

      ip pool ip-pool-name

    3. Configure the IP address of a DNS server.

      dns-list ip-address &<1-8>

      By default, no DNS server IP address is configured in an address pool.

      Each address pool can be configured with a maximum of eight DNS server IP addresses.

    4. Configure a domain name that is allocated to DHCP clients.

      domain-name domain-name

      By default, no DNS domain name suffix is configured.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >