Change the alternate mappings in central administration
Central Administration > Operations tab > Alternate access mappings > change every link that is refering to your old server.
rename your server
using the following command:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>
Stsadm.exe