·
9 commits
to master
since this release
Immutable
release. Only release title and notes can be modified.
Features
- DNS cache flush after hosts file changes (#43, #48)
- Library:
FlushDNSCache()function,AutoFlushoption inHostsConfig - CLI:
--flush/-fflag,TXEH_AUTO_FLUSH=1env var - macOS:
dscacheutil -flushcache+killall -HUP mDNSResponder - Linux:
resolvectl flush-caches(systemd 239+), falls back tosystemd-resolve --flush-caches - Windows:
ipconfig /flushdns - Flush failures are non-fatal. The hosts file is saved, a warning is printed to stderr.
- Library:
Improvements
- Refactored CLI mutation commands (add, remove host/ip/cidr/comment) to use shared
saveHostshelper - Descriptive error message when Linux has no systemd-resolved (explains that flushing isn't needed)
- Source citations in platform flush implementations (man pages, vendor docs)
Fixes
- Build-tag platform-specific tests so they only compile on the correct OS
- Bump Go from 1.24.4 to 1.24.7 (fixes GO-2025-3956
os/exec.LookPathvuln)
Documentation
- CLI reference:
--flushflag,TXEH_AUTO_FLUSH, platform requirements table - Troubleshooting: cross-reference to
--flushfrom manual flush instructions