Skip to content

Instantly share code, notes, and snippets.

@GluTbl
Created May 27, 2025 15:58
Show Gist options
  • Save GluTbl/983f69dba1cf2782c327b5ee906af170 to your computer and use it in GitHub Desktop.
Save GluTbl/983f69dba1cf2782c327b5ee906af170 to your computer and use it in GitHub Desktop.
[FLush dns] #bat
@echo off
cls
echo ========================================
echo DNS Flush Utility - Windows
echo ========================================
echo.
set /p userinput=Do you want to flush the DNS cache now? (y/n):
if /i "%userinput%"=="y" (
echo.
echo Flushing DNS cache...
ipconfig /flushdns
echo.
echo DNS cache has been successfully flushed.
) else (
echo.
echo DNS flush aborted by user.
)
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment