Netsh Routing IP Dnsproxy Context Commands

The following commands are specific to the routing IP dnsproxy context within the Netsh environment.

To view the command syntax, click a command:

Set commands

Show commands

Netsh commands for routing IP dnsproxy

The following entries provide details for each command.

dump

Displays the DNS proxy configuration of a remote access server in script form.

Syntax

dump

Remarks

  • You can dump the contents of the current configuration to a file that can be used to restore altered configuration settings.

Example

The following command saves the current configuration as a script in the routingipdnsproxy.dmp file.

dump > routingipdnsproxy.dmp

set global

Sets global DNS proxy parameters for all routed interfaces.

Syntax

set global

[querytimeout=] Integer

[[dnsmode=] {enable | disable}]

[[loglevel=] {none | error | warn | info}]

Parameters

[querytimeout=] Integer


Required. Specifies a timeout, in seconds, for proxied DNS queries.
[[dnsmode=] {enable | disable}]


Specifies whether DNS proxy operation is enabled or disabled.
[[loglevel=] {none | error| warn| info}]


Specifies which events should be logged. The none parameter specifies that no events related to DNS proxy should be logged. The error parameter specifies that only errors related to DNS proxy should be logged. The warn parameter specifies that only warnings related to DNS proxy should be logged. The info parameter specifies that all events related to DNS proxy should be logged.

Example

To specify that queries should time out after 10 seconds, to enable DNS proxy operation, and to prevent logging of DNS proxy events, type:

set global 10 enable none

install

Installs the routing protocol under IP.

Syntax

install

set interface

Configures DNS proxy parameters for an interface.

Syntax

set interface

[name=] InterfaceName

[[mode=] {enable | disable | default}]

Parameters

[name=] InterfaceName


Required. Specifies, by name, the interface for which to configure parameters. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[[mode=] {enable | disable | default}]


Specifies whether DNS proxy is enabled, disabled, or set to use the default for the specified interface. The enable parameter specifies that DNS proxy is enabled. The disable parameter specifies that DNS proxy is disabled. The default parameter specifies that DNS proxy is set according to the default for the interface.

Example

To enable DNS proxy for interface Local Area Connection, type:

set interface name="Local Area Connection" mode=enable

show global

Displays the DNS proxy global configuration.

Syntax

show global

show interface

Displays the DNS proxy configuration for the specified interface.

Syntax

show interface

[name=] InterfaceName

Parameters

[name=] InterfaceName


Required. Specifies, by name, the interface for which you want to display information. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").

uninstall

Removes the routing protocol under IP.

Syntax

uninstall