My guess is that the old name is still somewhere in the X "." dot files in your home directory e.g.
Code:
$ hexdump -C .serverauth.19562
00000000 01 00 00 11 68 65 72 63 75 6c 65 73 2e 75 74 70 |....hercules.utp|
00000010 2e 78 6e 65 74 00 01 30 00 12 4d 49 54 2d 4d 41 |.xnet..0..MIT-MA|
00000020 47 49 43 2d 43 4f 4f 4b 49 45 2d 31 00 10 08 76 |GIC-COOKIE-1...v|
00000030 5a d4 c5 52 40 77 b3 52 92 7b 41 b3 1a bc 01 00 |ZÔÅR@w³R.{A³.¼..|
00000040 00 11 68 65 72 63 75 6c 65 73 2e 75 74 70 2e 78 |..hercules.utp.x|
00000050 6e 65 74 00 01 31 00 12 4d 49 54 2d 4d 41 47 49 |net..1..MIT-MAGI|
00000060 43 2d 43 4f 4f 4b 49 45 2d 31 00 10 92 78 02 3b |C-COOKIE-1...x.;|
00000070 9b 29 97 16 1a 42 5f 6c de 3e 8f 0a |.)...B_lÞ>..|
Here you see my hostname
hercules.utp.xnet.
Have you tried to reboot your system? That way the hostname will be set from the
/etc/myname file.