Clear the content of the DNS client cache.
Syntax Clear-DnsClientCache [-CimSession CimSession] [-ThrottleLimit Int32] [-Confirm] [-WhatIf] [CommonParameters] Key -CimSession [CimSession] Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer. -ThrottleLimit [Int32] Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then PowerShell calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer. -Confirm Prompts for confirmation before running the cmdlet. -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. CommonParameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable.
Clear the DNS client cache:
PS C:\> Clear-DnsClientCache
“Muddy water, let stand - becomes clear” ~ Lao Tzu
Related PowerShell Commands:
Get-DnsClientCache - Retrieve the content of the local DNS client cache.
IPCONFIG /flushdns - IP configuration