To change use the below in putty

sudo /bin/hostname mynewhostname

and also

sudo edit /etc/hosts