There was some confusion about the hostname tool which moved from net-tools to coreutils in June and finally it’s somewhere else since August 19th.
If you were wondering why hostname disappeared on your system and everything relying on it like my oh-my-zsh completion script throwing an error like this since then:
~/.oh-my-zsh/lib/completion.zsh:37: command not found: hostname
you should get the inetutils package with
sudo pacman -S inetutils
I’m on testing. If you’re not you should find hostname in the net-tools package.
hostname is definitely owned by inetutils.