HOSTALIASES environment variable allows users to set their own host aliases instead of having to
/etc/hosts (more details, e.g., at http://blog.tremily.us/posts/HOSTALIASES/)
/etc/hosts I can alias IP addresses to names and names to names, whereas
HOSTALIASES only seems to work with name to name aliasing.
cat > .hosts work 10.10.0.1 g www.google.com ^D export HOSTALIASES=$PWD/.hosts
curl g #works curl 10.10.0.1 #works curl work #doesn't work
Can I make
curl work work without needing to edit a file I don't have write permissions to (