how does the system see itself? what is the first entry in /etc/hosts?
how does the shell writes the hostname?