Avilith – Scripts

Flush DNS Cache

Category: Network Troubleshooting

Back to Scripts

Clears the DNS client resolver cache to resolve domain name resolution issues.


Write-Host "Flushing DNS resolver cache..." -ForegroundColor Yellow
try {
    ipconfig /flushdns
    Write-Host "DNS cache flushed successfully." -ForegroundColor Green
} catch {
    Write-Host "Failed to flush DNS cache: $_" -ForegroundColor Red
}

        

Comments

Log in to leave a comment.