Configuring the DNS proxy

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.

A DNS proxy forwards an IPv4 name query first to IPv4 DNS servers. If no reply is received, it forwards the request to IPv6 DNS servers.

A DNS proxy forwards an IPv6 name query first to IPv6 DNS servers. If no reply is received, it forwards the request to IPv4 DNS servers.

To configure the DNS proxy:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable DNS proxy.

dns proxy enable

By default, DNS proxy is disabled.

3. Specify a DNS server.

  • Specify a DNS server IPv4 address:dns server ip-address

  • Specify a DNS server IPv6 address:
    ipv6 dns server
    ipv6-address [ interface-type interface-number ]

By default, no DNS server is specified.

You can specify both the IPv4 and IPv6 DNS addresses.