Not the most elegant solution but this will make sure that the hosts
file is correct, even if you change your host name:

I made a simple little script that can generate the hosts file based on
the current /etc/hostname, you could run this in your /etc/rc.local like
so:

/path/to/mkhosts.sh > /etc/hosts

** Attachment added: "mkhosts.sh - echo the correct hosts file contents 
(redirect it's output to /etc/hosts)"
   http://launchpadlibrarian.net/9848645/mkhosts.sh

-- 
Missing hostname in /etc/hosts causes sudo to fail
https://bugs.launchpad.net/bugs/19775
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to