I don't know the exact files, but for LMS/RWAN I did the following:
1. Shutdown all CW2K processes.
2. Find/replace all instances of "oldhostname" with "newhostname" in all files in the CW2K directory structure.
3. Update DNS.
4. Change system hostname.
5. Reboot.