Skip to content

txeh-v1.8.0

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Feb 23:56
· 9 commits to master since this release
Immutable release. Only release title and notes can be modified.
99a9be8

Features

  • DNS cache flush after hosts file changes (#43, #48)
    • Library: FlushDNSCache() function, AutoFlush option in HostsConfig
    • CLI: --flush / -f flag, TXEH_AUTO_FLUSH=1 env var
    • macOS: dscacheutil -flushcache + killall -HUP mDNSResponder
    • Linux: resolvectl flush-caches (systemd 239+), falls back to systemd-resolve --flush-caches
    • Windows: ipconfig /flushdns
    • Flush failures are non-fatal. The hosts file is saved, a warning is printed to stderr.

Improvements

  • Refactored CLI mutation commands (add, remove host/ip/cidr/comment) to use shared saveHosts helper
  • 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.LookPath vuln)

Documentation

  • CLI reference: --flush flag, TXEH_AUTO_FLUSH, platform requirements table
  • Troubleshooting: cross-reference to --flush from manual flush instructions

Changelog

Others

  • 99a9be8 Add DNS cache flush support (--flush flag) (#48)
  • 7e2837d housekeeping: fix OpenSSF Scorecard token permissions and pin docs deps (#42)
  • e181697 housekeeping: tighten linting, testing, and verification standards (#47)