Export (0) Print
Expand All

DNS Client Cmdlets in Windows PowerShell

Windows Server 2012 R2 and Windows 8.1

Updated: December 20, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. This reference topic for the information technology (IT) professional provides assistance in utilizing the Windows PowerShell cmdlets to script and automate tasks.

Domain Name System (DNS) Client

This reference provides cmdlet descriptions and syntax for all Domain Name System (DNS) Client-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.


cmdlet Description


Adds a rule to the Name Resolution Policy Table (NRPT).


Clears the contents of the DNS client cache.


Retrieves details of the network interfaces configured on a specified computer.


Retrieves the contents of the DNS client cache.


Retrieves global DNS client settings like the suffix search list.


Retrieves the Name Resolution Policy Table (NRPT) global settings.


Retrieves the Name Resolution Policy Table (NRPT) configured on the computer.


Retrieves DNS client Name Resolution Policy Table (NRPT) rules.


Gets DNS server IP addresses from the TCP/IP properties on an interface.


Registers all of the IP addresses on the computer onto the configured DNS server.


Removes the specified DNS client Name Resolution Policy Table (NRPT) rule.


Performs a DNS name resolution for the specified name.


Sets the interface specific DNS client configurations on the computer.


Sets the DNS client global settings, including the non-interface specific settings.


Modifies the global Name Resolution Policy Table (NRPT) settings.


Modifies a DNS client Name Resolution Policy Table (NRPT) rule for the specified namespace.


Sets DNS server addresses associated with the TCP/IP properties on an interface.

To list all the cmdlets that are available, use the Get-Command -Module DnsClient cmdlet.

For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name> cmdlet, where <cmdlet name> is the name of the cmdlet that you want to research. For more detailed information, you can run any of the following cmdlets:

Get-Help <cmdlet name> -Detailed
Get-Help <cmdlet name> -Examples
Get-Help <cmdlet name> -Full

More Information

For more information about the cmdlets, see the following:

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