В продолжение чудес DNS в MacOS X 10.6
There are a couple of preferred methods to do this in 10.5:
sudo hostname -s foo.bar.com
or
sudo scutil -set HostName foo.bar.com
Don’t let any of this confuse you with the Computer Name setting in “System Preferences->Sharing” which really should be called “Bonjour Name”.
(c)
http://budporter.net/?p=47