On 11/14/2012 01:46 AM, Ulrich Windl wrote: > This recommendation is against best practices: The FQHN is usually the first > name in /etc/hosts, aliases (short names) following. Probably it's better to > fix the application rather than fiddling with /etc/hosts.
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.) *Using the hostname* is against best practices. Reading it from /etc/hosts is an automatic F on unix network programming. -- Dimitri Maziuk Programmer/sysadmin BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
