Packages with the hostname use flag

sys-apps / coreutils : Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

  • Build the hostname program

sys-apps / net-tools : Standard Linux networking tools

  • build the hostname and dnsdomainname tools