Hostname command issue

Hi All,

I am using redhat Linux 5.2.2 on vmware. I have created VM Machine using kickstart & rest 10 machines i created using vmware cloning.

On the base machine which i installed from kickstart its showing FQDN using hostname --fqdn but cloned machines are showing hosts name i have chnaged all the file which i know very well as below.
I chnaged ipaddress,hostname & MAC ID of the new system.

/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/hosts

I have provided FQDN in /etc/hosts file.

Can anyone suggests what can be the issue.

Regards

Ankit

the fqdn option is somewhat nebulous... so if you're not using DNS and not use NIS then it will get the value (supposedly) from whatever you supplied in /etc/hosts. You can do strace -f hostname --fqdn to try to determine what it is trying to use.