Apple doesn't follow the canonical UNIX conventions for setting the host computer name. Instead of an entry in /etc/hosts, /etc/hostconfig is used. Edit the line which says HOSTNAME=-AUTOMATIC- to look like HOSTNAME=rosencrantz.geektimes.com Restarting the daemon, or rebooting, will result in the hostname command working as expected. Of course domainname is still broken...