I have noticed that in /etc/init.d/domainname it does not actually set domainname and sets domainname when setting nisdomainname. Reproducible: Always Steps to Reproduce: 1. emerge baselayout-1.11.13 2. edit /etc/conf.d/domainname 3. /etc/init.d/domainname restart 4. compare the output from `domainname -f` and `domainname` Actual Results: the command domainname ${DNSDOMAIN} is not executed and if NISDOMAIN is set then domainname ${NISDOMAIN} is executed by misteake Expected Results: set domainname to DNSDOMAIN and nisdomainname to NISDOMAIN See: http://forums.gentoo.org/viewtopic-p-2611065.html#2611065 for the fix.
domainname doesnt do what you think it does ... review `man domainname` the current behavior of the domainname script (while not completely intuitive at first glance) is correct