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

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



On Thu, Jun 16, 2011 at 4:21 AM, Jochen Schulz <ml@well-adjusted.de> wrote:
>>
>> 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

NM adds a line associating the DHCP-assigned address with the box's
hostname. The 127.0.0.1 line doesn't change.


Reply to: