🖥️ Host File Editor
A powerful, modern VS Code extension to manage your system hosts file — without ever leaving the editor.
Author: dark-aura-95 | Publisher: Aura Box
✨ Features
📋 Hosts File Management
- View all host entries in a clean, structured table
- Add, Edit, Delete entries inline
- Enable / Disable entries with a single toggle (comments/uncomments lines)
- Validate IPs (IPv4 & IPv6) and hostnames before saving
🗂️ Grouping System
- Organize entries into named groups
- Visual group separators with collapsible sections
- Assign groups per entry with a dropdown + "New Group" option
- Custom comment field per entry
- Groups persisted in the hosts file via
# @group GroupName annotations
💾 Backup System
- One-click backup of your current hosts file
- Timestamped backup files stored locally
- Restore from any previous backup
- Configurable backup directory and maximum backup count
🔄 DNS Cache Flushing
| Platform |
Command Used |
| Windows |
ipconfig /flushdns |
| macOS |
dscacheutil -flushcache + killall -HUP mDNSResponder |
| Linux |
systemd-resolve --flush-caches or nscd restart |
📤 Import / Export
- Export entries as JSON
- Import entries from JSON
📄 License
MIT © 2024 dark-aura-95 / Aura Box
🐛 Known Limitations
- On Linux,
pkexec must be installed for privilege escalation. Alternatively, run VS Code with sudo.
- DNS flush on Linux requires
systemd-resolved or nscd to be installed.
- The extension cannot bypass OS security policies; elevated permission prompts are system-level.
| |