/bin/ypdomainname is in hostname 3.06ubuntu1.
This file is owned by root:root, with mode 0o755.
It is a symlink to /bin/./bin/nisdomainname
/bin/./bin/nisdomainname