Files disappearing from Amazon EC2 servers

amazon ec2cloud computing

I have an Ubuntu 8.10 server at Amazon's EC2, based on the ami-1c5db975 image by Eric Hammond.

After rebooting an EC2 server, the /etc/resolv.conf file is reset to a default, erasing any changes made prior to the boot.

This bug was told to be secluded problem related only to Canonical Ubuntu image, which I don't use.

  1. Do you know of any other files affected by reboot?
  2. Is there any workaround or proper solution for this bug?

Thanks,

Udi

EDIT: Problem solved, 1 month later:

Thanks for your answers and comments. I did edit the dhcp3 configuration file, but forgot to restart dhcp3:

/etc/init.d/networking restart

After running this, the resolv.conf file was automatically updated.

Best Answer

/etc/resolv.conf is reset by the DHCP client. If you want to override it, you might want to look into using resolvconf to prepend custom configuration. Note that if you override Amazon's DNS servers, transfers to/from S3 may no longer be free.