Change computer name: got as root to etc/rc.conf
Edit it with your fav text editor:
If you have configured your hosts file (also in /etc) and it is different from the default:
127.0.0.1 localhost.localdomain localhost
you might to have to adapt that to the new settings.