Hacker News new | ask | show | jobs
by mb0 3962 days ago
hostname -i on cb.vu says the IP address is 78.31.70.238, but if you ping a host from the interface, the pings originate from 178.33.34.4 (according to tcpdump).
3 comments

I love the "why not try this" attitude of your comment.

Is this due to an LB fronting?

On this system hostname -i says 127.0.1.1, despite this address not being set on any of my interfaces (lo0 is 127.0.0.1).
It looks like hostname -i is getting its value from /etc/hosts. hostname --all-ip-addresses returns the correct result.
ip route get 8.8.8.8 | head -1 | cut -d' ' -f8