linux centos 6.3 hostname (dhcppc4) assigned automatically

view story

http://stackoverflow.com – Linux terminal showing hostname dhcppc4 that i never configured. As per configuration files hostname must be localhost : [root@dhcppc4 ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=localhost.localdomain [root@dhcppc4 ~]# cat /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 Note : I attached a new monitor to my laptop. Don't know how but sometimes terminal shows localhost as hostname. what is dhcppc4? How to resolve the issue? (HowTos)