You can do it from the shell using 'hostname' (hostname name_you_want - see man hostname for more info/options).

To set it permanently, have a look at /etc/hostname and /etc/resolv.conf