This is a part of an on-going blog series written by Adam Gordon. Each week, Adam will walk you through a PowerShell command, showing you when and how to use each one. This week, Adam covers Clear-DnsServerCache.
When to use Clear-DnsServerCache?
The Clear-DnsServerCache cmdlet clears resource records from a Domain Name System (DNS) server cache.
What version of PowerShell am I using for this blog?
Get PowerShell Version from your machine:
This command shows you the PowerShell Version information on your machine.
How to use Clear-DnsServerCache?
Clear resource records from the cache:
Clear-DnsServerCache -ComputerName “SCCMDC.ITP.LOCAL” -Force
This command clears the DNS server cache on a specified DNS server. If you do not use the Force parameter, you must confirm the action before it is performed.
Learn last week’s command: Clear-Disk.
Need PowerShell training? Check out ITProTV’s PowerShell online IT training courses.