There must be a permanent fix for this? Surely I just need to edit a template somewhere? Every time there is a yum update it changes (unless I set it immutable).
Colin > -----Original Message----- > From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx- > boun...@mail.blueonyx.it] On Behalf Of Christoph Schneeberger > Sent: 24 September 2015 09:42 > To: blueonyx@mail.blueonyx.it > Subject: [BlueOnyx:18383] Re: Hosts changing to localhost.localdomain > > This is biting me since years. What I do is to delete /etc/hosts, reboot the > vps > (then it creates a good one) and then I set it to immutable (chattr +i). > This is far from perfect und you have to remember to remove the immutable bit > before migrating or deleting the vps but it lets you sleep at the weekends or > whenever upset customers start to call in. > > HTH - Christoph > > On 09/24/2015 10:20 AM, Colin Jack wrote: > > We keep getting problems with clients saying email from their websites is > bouncing and when I check I find the /etc/hosts file has changed on the server > and mail is being sent from apache@localhost.localdomain: > > > > # Auto-generated file. Keep your customizations at the bottom of this file. > > #END of auto-generated code. Customize beneath this line. > > ### Begin - Nuonce hosts Fix > > ### End - Nuonce hosts Fix > > 127.0.0.1 localhost.localdomain localhost server6-venet0 > > server6.mainline.co.uk server6-venet0.mainline.co.uk # Auto-generated > hostname. Please do not remove this comment. > > 192.168.10.135 server6.mainline.co.uk server6-venet0:0 > > server6-venet0:0.mainline.co.uk server6 > > ::1 localhost > > > > I manually edit the hosts file and remove the offending item and then a few > weeks later it happens again. > > Where is the template held so I can make a permanent change? > > > > This is happening on a number of VPS - not sure whether this is Aventurin{e} > or BXmaking the change. > > > > All are VPS on Aventurin{e} clusters - in the above case it is an old 5106R. > > > > Many thanks > > > > Colin > > > > _______________________________________________ > > Blueonyx mailing list > > Blueonyx@mail.blueonyx.it > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > _______________________________________________ > Blueonyx mailing list > Blueonyx@mail.blueonyx.it > http://mail.blueonyx.it/mailman/listinfo/blueonyx _______________________________________________ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx