Have you looked at what the "Computer Name" is set to in "Sharing" preferences?
S-
Does the "hostname" and "whoami" command list the correct info?
Try quitting Terminal completely and then logging on/off of your account.
Wirelessly posted (iPhone 4: Mozilla/5.0 (Linux; U; Android 2.3.3; en-gb; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1)
Try setting your DHCP client ID to your machine name in network settings and then Renee your DHCP lease.
I've seen this before when a DHCP server updates the DNS server with unknown and the MAC address which then gets used as the hostname.
PS1='$(networksetup -getcomputername):\W \u\$ '
The problem isn't your computer. Phil A. is right. The problem is that is the name you DHCP server is handing you.
Edit your account's ".bash_profile" file and add this to it:
Code:PS1='$(networksetup -getcomputername):\W \u\$ '
The ".bash_profile" file should be at the root level of your user account. If it is not there, create it.
Now, if you put "8.8.8.8" at the top of your DNS list, I bet your hostname would work fine too.
S-