/etc/hosts ファイルの設定が突然変更されます
Issue
- system-config-network でホスト名、IP アドレス、およびエイリアスを設定すると、/etc/hosts ファイルの設定が削除されるか、間違った設定に変更されます。
/etc/hosts ファイルの現在の内容を確認します。
1.# cat /etc/hosts
127.0.0.1 www.test.co.jp www localhost.localdomain localhost
system-config-network で設定を追加します。
2.# system-config-network
Host Tab -> New Tab
192.168.0.1 www.test.co.jp www <-追加
/etc/hosts ファイルの内容を確認します。
3.# cat /etc/hosts
127.0.0.1 <-'hostname' と 'alias' がありません
192.168.0.1 www.test.co.jp www
または
<-'IP address'、'hostname'、および 'alias' がすべて削除されました
192.168.0.1 www.test.co.jp www
Environment
Red Hat Enterprise Linux 5.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
