A PowerShell script for Microsoft Windows (Windows 10 and later) to enhance your gameplay. You might be like me who can sometimes have bad internet for no reason, and your game client can crash because of that. Well this PowerShell script is used to clear your DNS cache every 30, 60, 90, 120, 150, or 180 seconds (you can change it if you want to).
If you have the old legacy PowerShell (PowerShell v1 - v5.1) on your Windows system. Then I recommend you install the latest version of PowerShell Core from the offical Github Repository here: https://github.com/PowerShell/PowerShell
If you have the latest version of PowerShell Core installed onto your system. Then run the file by entering:
- ./clear_dns.ps1
- pwsh clear_dns.ps1
- Make a PowerShell script that would flush DNS in Linux.