cat /etc/hosts returns two results:
127.0.0.1 Localhost
127.0.1.1 [mycomputersname].[city].[state].[domain].net (brackets for anonymity)
When I run hostname, it returns [mycomputersname] without the .*.* etc etc
Whenever I run sudo, it tells me it can't resolve [mycomputersname]
If I manually change the hosts table to remove the .*.* etc, then it works fine. Until it changes it back at some point (reboot?) and it starts all over again. What is going on here and what can I do to fix it? Thanks!
Apologies if this is a dumb question. I'm very new to Linux.
127.0.0.1confuses the software (which one does it pick? How does it know?). – waltinator Sep 29 '14 at 19:47127.0.1.1, and127.0.0.1islocalhost. – muru Sep 29 '14 at 19:47