solved my own problem
user plist buddy (more info at
http://www.dreness.com/blog/archives/6)
the plist containing the computer and hostname is located /Library/Preferences/SystemConfiguration/preferences.plist
you may need to change the permissions of that file first before you can edit its contents, and also it requires configd to be restarted (either from the command-line or reboot the computer).