Domain Name System (DNS) Client Cmdlets in Windows PowerShell

Updated: October 21, 2016

Applies To: Windows 10, Windows PowerShell 5.0, Windows Server 2016

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.

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

Add-DnsClientNrptRule

Adds a rule to the NRPT.

Clear-DnsClientCache

Clears the contents of the DNS client cache.

Get-DnsClient

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

Get-DnsClientCache

Retrieves the contents of the DNS client cache.

Get-DnsClientGlobalSetting

Retrieves global DNS client settings like the suffix search list.

Get-DnsClientNrptGlobal

Retrieves the NRPT global settings.

Get-DnsClientNrptPolicy

Retrieves the NRPT configured on the computer.

Get-DnsClientNrptRule

Retrieves DNS client NRPT rules.

Get-DnsClientServerAddress

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

Register-DnsClient

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

Remove-DnsClientNrptRule

Removes the specified DNS client NRPT rule.

Resolve-DnsName

Performs a DNS name resolution for the specified name.

Set-DnsClient

Sets the interface specific DNS client configurations on the computer.

Set-DnsClientGlobalSetting

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

Set-DnsClientNrptGlobal

Modifies the global NRPT settings.

Set-DnsClientNrptRule

Modifies a DNS client NRPT rule for the specified namespace.

Set-DnsClientServerAddress

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

noteNote
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

Community Additions

ADD
Show: