Share via


Netsh Routing IP Dnsproxy Context Commands

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:

  • dump

  • install

  • uninstall

Set commands

  • set global

  • set interface

Show commands

  • show global

  • show interface

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

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

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 DNS proxy component for IPv4.

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.

    • 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.

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 DNS proxy component from IPv4.

Syntax

uninstall