Chinaunix
标题:
怎么修改localdomain?
[打印本页]
作者:
hkg36
时间:
2011-07-12 10:45
标题:
怎么修改localdomain?
本帖最后由 hkg36 于 2011-07-12 10:52 编辑
在/etc/sysconfig/network里修改hostname为test.testdomain.com,然后在/etc/hosts里面也改了,在/etc/resolv.conf 把search后面改成了testdomain.com,然后重启机器,运行domainname还是显示ocalhost.localdomain,/etc/resolv.conf 自动改成了localhost.localdomain。
应该怎么改啊?
作者:
anonymous0502
时间:
2012-07-08 12:33
domainname - show or set the system’s NIS/YP domain name
作者:
ulovko
时间:
2012-07-08 13:34
NAME
domainname — set or print name of current YP/NIS domain
SYNOPSIS
domainname [ypdomain]
DESCRIPTION
The domainname utility prints the name of the current YP/NIS domain. The
super-user can set the domain name by supplying an argument; this is usu‐
ally done in the network initialization script /etc/rc.network, normally
run at boot time.
复制代码
阁下使用的是DHCP
cute-boy.gif
(141.16 KB, 下载次数: 20)
下载附件
2012-07-08 13:34 上传
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2