Thanks, you nailed it. :-) Add this: For RHEL/Centos 6, 7, and 8 (and probably older versions),
echo "NISDOMAIN=whatever" >> /etc/sysconfig/network
and I'll accept the answer.