lla Flush DNS Plugin

August 16, 2026 ยท View on GitHub

DNS cache flushing plugin for lla with history tracking and cross-platform support.

Features

  • Cross-Platform: Works on macOS, Linux, and Windows
  • History Tracking: Track all flush operations with timestamps
  • Confirmation Prompts: Optional confirmation before flushing
  • Statistics: View flush history and success rates

Usage

# Flush DNS cache
lla plugin run flush_dns flush

# View flush history
lla plugin run flush_dns history

# Clear history
lla plugin run flush_dns clear-history

# Configure preferences
lla plugin run flush_dns preferences

# Show help
lla plugin run flush_dns help

Configuration

Config location: ~/.config/lla/plugins/flush_dns/config.toml

confirm_before_flush = true      # Show confirmation prompt
show_verbose_output = true       # Display command output
max_history_size = 50           # Maximum history entries

[colors]
success = "bright_green"
info = "bright_cyan"
warning = "bright_yellow"
error = "bright_red"

Display Examples

Flushing DNS:

โ„น Info: Flushing DNS cache on macOS...
โœ“ Success: DNS cache flushed successfully!

History View:

๐Ÿ“œ DNS Flush History:
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
 โœ“ 2025-10-20 16:30:45 [macOS] Success
 โœ“ 2025-10-20 15:20:30 [macOS] Success
 โœ— 2025-10-20 14:15:22 [macOS] Failed
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

๐Ÿ“Š Statistics:
 โ€ข Total flushes: 25
 โ€ข Successful: 24
 โ€ข Failed: 1

Platform Commands

  • macOS: sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder
  • Linux: sudo systemd-resolve --flush-caches or sudo systemctl restart nscd
  • Windows: ipconfig /flushdns