This post might have been avoided had The great AT Linux/BSD/*NIX FAQ project! not been unstuck! :disgust:
Q: How do I set domainname and get it to survive a reboot?
A: You have to initialize the domainname on boot. The network services reset at every reboot. Thus, in order to set the domainname during boot, do the following:
In etc/sysconfig/network add in the following lines:
NISDOMAIN='xxxxxx.xxx'
In /etc/rc.sysinit add in the following lines:
# Set the NIS domain name
if [ -n "$NISDOMAIN" ]; then
action "Setting NIS domain name $NISDOMAIN" domainname $NISDOMAIN
else
domainname ""
fi
right after the lines:
# Set the hostname.
action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME}