1. set the host name. for example, set the host name to local.domain.com and add or modify HOSTNAME = local.domain.com in the/etc/sysconfig/network file.
1. set the host name
For example, set the host name to local.domain.com.
Add or modify the/etc/sysconfig/network file
| |
HOSTNAME=local.domain.com |
The modification of the above files does not take effect immediately and the system needs to be restarted. Therefore, enter
| |
hostname=local.domain.com |
It will take effect without restarting the server;
II. set DNS service
Modify/etc/resolv. confg. common parameters are as follows:
nameservice dnsService1nameservice dnsService2search domain1.com domain2.com |
For other configurations of this/etc/resolv. conf file, refer:
Http://man.chinaunix.net/linux/debian/debian_learning/ch11s13.html
3. local hosts file
Follow the following format in/etc/hosts: