[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/hosts in debian resets itself on reboot



Tapas Mishra:
>
> I've been having a problem where when our vps provider decides to
> restart the server (running Debian 5.0.8), the server fails to
> remember changes to /etc/hosts. All I need is an database alias that
> is used for the webapps on the server which points to 127.0.0.1
> localhost.

I don't know what keeps overwriting your file, but I assume it actually
just re-writes a single line for localhost. Try adding a new line
pointing to "database" like this and see if that persists:

127.0.0.1 database

J.
-- 
At night I go to the kitchen; specifically, the knife drawer.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: