-   Linux - Networking (
-   -   /etc/hosts permanent changes? (

kpachopoulos 07-10-2005 04:56 PM

/etc/hosts permanent changes?
How can i achieve permanent changes of /etc/hosts? I found that i can do "chattr +i /etc/hosts", but i think this is a solution of necessity. Is there another way to add a host?
There was another similar thread and the answer was "edit /etc/hostname"; there is no such filename however.
What can i do?

keefaz 07-10-2005 05:03 PM

What do you want to do ? resolve known host names to their IPs ?
If yes, it is not hard, add the hosts in /etc/hosts as :
Code:  localhost    nocturna    futura

Why do you need to chattr it ?

All times are GMT -5. The time now is 06:04 PM.