> It is actually worse than that: for as long as I remember RH > has included a trap for young players where if you edit > /etc/hosts all sorts of interesting things may happen after > next reboot. Or rpm update. > Depending on your choice of editor and phase of the moon. > > None of my RH6 machines have the hostname in /etc/hosts > anymore anyway, all there is is localhost and localhost6. > (And I think RHEL5 install scripts may or may not put it > there dep. on the install mode: DVD vs netboot or something.) > > -- > Dimitri Maziuk
I only have 30 or so RHEL servers (5.X and 6.X) but they all have the hostnames in /etc/hosts using the format... a.b.c.d thishost.domain.com thishost Things work fine as far as I have been able to tell over the past 6 years. There are some functions that I don't want to be dependent on dns. The last ting I want is cluster failure because some component can't resolve the address of the other nodes because the dns servers are unreachable for whatever reason. > *Using the hostname* is against best practices. Reading it > from /etc/hosts is an automatic F on unix network programming. > What's the point of having... hosts: files,dns ..in nsswitch.conf if it is against best practices? I might be misunderstanding your meaning. -- Eric Robinson Disclaimer - November 14, 2012 This email and any files transmitted with it are confidential and intended solely for General Linux-HA mailing list. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physicians' Managed Care or Physician Select Management. Warning: Although Physicians' Managed Care or Physician Select Management has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
