Hi there!
I have the following problem:
I have two installations of RH 5.2. Both were installed without problems
at all...
But one of them presents itself as localhost and one of them presents
itself corectly.
Please note that I'm using name server and name server responds
correctly (I verified that).
i.e. it maps from name -> IP and from IP -> name correctly for both
machines.
I dig a little bit around the init scripts and I found that the name of
the host is determined in
/etc/sysconfig/network-scripts/ifup-post
Here is the snippet:
if [ -n "$NEEDHOSTNAME" -a ${DEVICE} != lo ]; then
IPADDR=`ifconfig ${DEVICE} | grep 'inet addr' |
awk -F: '{ print $2 } ' | awk '{ print $1 }'`
eval `/bin/ipcalc --silent --hostname ${IPADDR}` && set_hostname
$HOSTNAME
fi
Even more weird is that /bin/ipcalc RETURNS the correct hostname while
the system is running.
I set the name of the machine by hand in:
/etc/sysconfig/network
It gets the correct name now... I'm wondering why the hostname wasn't
set properly with original installation.
=b
--
===========================================================================
Sluba za informatiko | Phone: (work) +386 69 31 676
| (ISDN) +386 69 14 632
| (home) +386 69 37 499
===========================================================================