Configuring the DNS proxy

Restrictions and guidelines

You can specify multiple DNS servers. The DNS proxy forwards a request to the DNS server that has the highest priority. If having not received a reply, it forwards the request to a DNS server that has the second highest priority, and so on.

You can specify both an IPv4 address and an IPv6 address.

Procedure

  1. Enter system view.

    system-view

  2. Enable DNS proxy.

    dns proxy enable

    By default, DNS proxy is disabled.

  3. Specify a DNS server address.

    IPv4:

    dns server ip-address [ vpn-instance vpn-instance-name ]

    IPv6:

    ipv6 dns server ipv6-address [ interface-type interface-number ] [ vpn-instance vpn-instance-name ]

    By default, no DNS server address is specified.