domainame has referenced getdomainname(2) instead of getdomainname(3). bug report docs/137.
manual page.