My mac's hostname keeps getting reset to default
Try these two steps:

1) First edit the file /etc/sysctl.conf:

sudo pico -w /etc/sysctl.conf

and add the line:

kern.hostname=felucia

2) Then do this:

sudo sysctl -w kern.hostname=felucia

The first command sets the hostname that should be saved after reboot.

The second command sets the hostname immediately.

I'm not positive this will help, but it's worth trying.