Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mb0
on Aug 7, 2015
|
parent
|
context
|
favorite
| on:
Unix Toolbox
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).
samstave
on Aug 7, 2015
|
next
[–]
I love the "why not try this" attitude of your comment.
Is this due to an LB fronting?
c22
on Aug 7, 2015
|
prev
|
next
[–]
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
on Aug 7, 2015
|
parent
|
next
[–]
It looks like hostname -i is getting its value from /etc/hosts. hostname --all-ip-addresses returns the correct result.
collinmanderson
on Aug 10, 2015
|
prev
[–]
ip route get 8.8.8.8 | head -1 | cut -d' ' -f8
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: