Hacker News new | ask | show | jobs
by GoblinSlayer 267 days ago
If your programs use glibc, it supports hosts overrides in an environment variable, forgot which.
1 comments

`HOSTALIASES` lets you alias hostnames, but not map hostnames to IPs.

Docs at `man gethostbyname`

https://man7.org/linux/man-pages/man3/gethostbyname.3.html