“Ubuntu: set domain name”版本间的差异
来自cslt Wiki
(以“Temporarily: domain <domain name> Permanently: change /etc/hosts: 127.0.0.1 cow02.LINUX-NIS 192.168.0.102 cow02.LINUX-NIS check with hostname -d, you will see...”为内容创建页面) |
(没有差异)
|
2016年8月28日 (日) 03:07的最后版本
Temporarily:
domain <domain name>
Permanently:
change /etc/hosts:
127.0.0.1 cow02.LINUX-NIS 192.168.0.102 cow02.LINUX-NIS
check with hostname -d, you will see domainname
However, using 'domainname' still not work.
Further change /etc/sysctl.conf:
kernel.domainname = LINUX-NIS
Then, sysctl -p to update
You will see domainname works.