Hacker News new | past | comments | ask | show | jobs | submit login

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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: