Occasionally my /etc/hosts file gets corrupted. The IP address and the host name switch positions with the host name to the left. What this happens, my 7940 phones won't register. Fixing /etc/hosts allows the phones to register. Do any of you Linux gurus know who is corrupting the hosts file? Thanks, -- Michael Welter Introspect Telephony Corp. Denver, Colorado +1 303 674 2575 mike@introspect.com www.introspect.com
administrator tootai
2004-Aug-18 08:12 UTC
[Asterisk-Users] [OT] What's changing /etc/hosts?
Michael Welter a ?crit :> Occasionally my /etc/hosts file gets corrupted. The IP address and > the host name switch positions with the host name to the left. > > What this happens, my 7940 phones won't register. Fixing /etc/hosts > allows the phones to register. > > Do any of you Linux gurus know who is corrupting the hosts file?You must have a software which is generating from time to time a new hosts file. Check timestamp to see when it was written last time and then follow in your logs which daemon where running at this time.> > Thanks, >Welcome -- Daniel
do a 'ps -ef | more' or 'ps -aux | more' and look at the processes that are listed to see if there is something running that might be doing it. Otherwise, I'd approach it by going through each of the startup scripts (rc#.d, etc.) and then each application's startup scripts. A bit tedious, but... -Mark> > Occasionally my /etc/hosts file gets corrupted. The IP address and the > host name switch positions with the host name to the left. > > What this happens, my 7940 phones won't register. Fixing /etc/hosts > allows the phones to register. > > Do any of you Linux gurus know who is corrupting the hosts file? > > Thanks, > > -- > Michael Welter > Introspect Telephony Corp. > Denver, Colorado > +1 303 674 2575 > mike@introspect.com > www.introspect.com > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Oh, com'on! Where's your sense of adventure? :) -Mark> > On Wednesday 18 August 2004 13:09, Mark Woods wrote: > > do a 'ps -ef | more' or 'ps -aux | more' and look at the processes that are > > listed to see if there is something running that might be doing it. > > > > Otherwise, I'd approach it by going through each of the startup scripts > > (rc#.d, etc.) and then each application's startup scripts. A bit tedious, > > but... > > Bah... just remove all write perms to it (use chattr +i if you have ext2/ext3 > fs) and watch for the process changing it to error out. :-) > > -A. > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >