Troubleshooting¶
Common Issues¶
Permission denied¶
The hosts file requires root/administrator privileges to modify. Use sudo:
Command not found after go install¶
The Go binary directory may not be in your $PATH. Add it:
Add this line to your shell profile (~/.bashrc, ~/.zshrc, etc.) to make it permanent.
Hosts not resolving¶
After adding entries, if the hostname doesn't resolve:
-
Flush DNS cache:
-
Verify the entry was added:
-
Check for conflicting entries. Multiple entries for the same hostname may cause unexpected behavior.
Windows hosts file location¶
txeh auto-detects the Windows hosts file via the SystemRoot environment variable. The default is:
If your Windows installation uses a non-standard path, set SystemRoot or use the --read/--write flags.
Getting Help¶
- GitHub Issues: Bug reports and feature requests.
- GitHub Discussions: Questions and community support.