Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mb0
· 11y ago · 0 comments
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).
Comments
[–]
samstave
11y ago
I love the "why not try this" attitude of your comment.
Is this due to an LB fronting?
[–]
c22
11y ago
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).
[–]
c22
11y ago
It looks like hostname -i is getting its value from /etc/hosts. hostname --all-ip-addresses returns the correct result.
[–]
collinmanderson
11y ago
ip route get 8.8.8.8 | head -1 | cut -d' ' -f8