how to reset mac local host name to defaults
From any admin account:


Open Terminal
Run sudo gzcat /var/log/system.log.7.gz | head (admin password required)
The name as of seven days ago will be shown at the beginning of each line right after date/time.