Fix problems of miscellaneous network services
A bug in anaconda and another in system-config-network can lead to a broken /etc/hosts file. This results in various networking services not starting or otherwise missbehaving.
Applicable to Fedora Versions
- Fedora Core 6
Doing the Work
- Open a terminal and check if you are affected by the problem
ping -c 1 localhost
If the output isping: unknown host localhost
you're suffering from the problem. If not you may still want to follow this howto (skipping step 5) so this bug doesn't bite you later.
- Become root
su -
- Change to the /etc directory
cd /etc
- Create a backup file of the hosts file
cp hosts hosts.orig
- Open the hosts file in your favourite editor and add this enty
127.0.0.1 localhost.localdomain localhost
- Modify the entry
::1 localhost.localdomain localhost
so it reads::1 localhost6.localdomain localhost6
- Save the modifications and exit your editor
- Give up root priviledges
exit
Troubleshooting
How to test
See step 1 of Doing the work
More Information
Disclaimer
We test this stuff on our own machines, really we do. But you may run into problems, if you do, come to #fedora on irc.freenode.net

