The Debian version of hostname is widely used on other distros. It offers a few more options (-I, -A).