Configuring the DNS proxy

You can specify multiple DNS servers by using the dns server command repeatedly. Upon receiving a name query request from a client, the DNS proxy forwards the 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 thus in turn.

To configure the DNS proxy:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable DNS proxy.

dns proxy enable

Disabled by default.

3. Specify a DNS server.

  • (Method 1) In system view:
    dns server
    ip-address

  • (Method 2) In interface view:

    1. interface interface-type interface-number

    2. dns server ip-address

Use at least one method.

No DNS server is specified by default.