Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 Fall 2025 batch! Applications are open till Aug 4

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

Search: