Y
Hacker News
new
|
ask
|
show
|
jobs
by
c22
3972 days 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).
1 comments
c22
3972 days ago
It looks like hostname -i is getting its value from /etc/hosts. hostname --all-ip-addresses returns the correct result.
link