Phil,
I presume that you fixed the hostname problem by creating a
name in /etc/hostname.
To fix the name lookup add a host entry to /etc/hosts for
your hostname, e.g:
$ cat /etc/hostname
bob
$ cat /etc/hosts
127.0.0.1 bob localhost
HTH,
Paul.
--
Paul.Emsley@chem.gla.ac.uk
http://www.chem.gla.ac.uk/~paule