Comment 10 for bug 19775

Revision history for this message
20after4 (twentyafterfour) wrote :

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