What about: n22 ~ # diff -u domainname /etc/init.d/domainname --- domainname 2005-06-24 21:50:59.000000000 +0200 +++ /etc/init.d/domainname 2005-06-24 21:51:29.000000000 +0200 @@ -45,6 +45,7 @@ if checkconfig_dns ; then ebegin "Setting DNS domainname to ${DNSDOMAIN}" + /bin/domainname "${DNSDOMAIN}" resolv=$(grep -v '^[[:space:]]*domain' /etc/resolv.conf) [[ ${OVERRIDE} == "1" ]] \ && resolv="${resolv}"$'\n'"domain ${DNSDOMAIN}" \ ? Reproducible: Always Steps to Reproduce: 1. 2. 3.
domainname sets the NIS/YP domainname hence the NISDOMAIN var