Export (0) Print
Expand All

Netsh Routing IP Dnsproxy Context Commands

Updated: June 3, 2009

Applies To: Windows Server 2008, Windows Server 2008 R2

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

The following entries provide details for each command.

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

dump

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

The following commands save the current configuration as a script in the c:\test\dnsproxycfg.dmp file.

  • From the command prompt:

    netsh routing ip dnsproxy dump > c:\test\dnsproxycfg.dmp

  • From the netsh routing ip dnsproxy context prompt:

    set file open c:\test\dnsproxycfg.dmp

    dump

    set file close

You can use the netsh exec command to run the script created by the netsh dump command.

Sets global DNS proxy parameters for all routed interfaces.

set global

[ [ querytimeout = ] Integer ]

[ [ dnsmode = ] { enable | disable } ]

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

querytimeout = ] Integer
Required. Specifies a timeout, in seconds, for proxied DNS queries.

dnsmode = ] { enable | disable }
Specifies whether the DNS proxy operation is enabled or disabled.

loglevel = ] { none | error | warn | info }
Specifies which events should be logged.

  • none specifies that no events related to DNS proxy should be logged.

  • error specifies that only errors related to DNS proxy should be logged.

  • warn specifies that both errors and warnings related to DNS proxy should be logged.

  • info specifies that all events related to DNS proxy should be logged.

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

Installs the DNS proxy component for IPv4.

install

Configures DNS proxy parameters for an interface.

set interface

name = ] InterfaceName

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

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.

  • enable specifies that DNS proxy is enabled.

  • disable specifies that DNS proxy is disabled.

  • default specifies that DNS proxy is set according to the default for the interface.

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

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

Displays the DNS proxy global configuration.

show global

Displays the DNS proxy configuration for the specified interface.

show interface

name = ] InterfaceName

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").

Removes the DNS proxy component from IPv4.

uninstall

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft