Red Hat Linux 6.x and 7.xCreate or modify the variable NISDOMAIN in the file

/etc/sysconfig/network.